Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 152 - 2620_Birla Open Mind C-6
P. 152

    ==, !=, >, <, >=, <=          Comparison
                                =, +=, -=, *=, /=, %=, **=, //=  Assignment

                                not, and, or                  Logical

                       SOME MORE PROGRAMS

                    Program 5: To compute the difference between two numbers entered by the user

                    Program 6: To calculate the average marks of three subjects

                    Program 7: To calculate the volume and surface area of cylinder

                             Timeline

                              Python is a popular high-level programming language.

                              Interactive Mode is a command line shell which gives immediate result for each command.
                              The input() function takes the user’s input while a program executes.
                              The print() function prints or sends the output to the standard output device, which is usually a monitor.

                              Variables are memory reference points where we store values which can be accessed or changed later.
                              A data type specifies the type of value a variable can contain.
                              Comments enable us to understand the way a program works. Python does not execute comments.

                              Operators can be defined as special symbols which perform arithmetic and logical computation.
                              Precedence of operators determines the order in which the operators are executed.

                      150  Premium Edition-VI

| 147 148 149 150 151 152 153 154 155 156 157 |