Page 136 - TP_Plus_v4_Class6
P. 136

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

                            and, or, not                  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.




                  134  Plus (Ver. 4.0)-VI
   131   132   133   134   135   136   137   138   139   140   141