Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 142 - 2625 PortGPt V2.1
P. 142

    Factopedia                          Program 6: To calculate the average marks of three subjects.

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

                        Python is one of the
                        official languages at
                              Google.

                         The name Python                        Let’s BaCk-uP
                       was derived from the                Python is a popular high-level programming language.
                       British comedy series
                          "Monty Python's                   Interactive  Mode  is a command  line shell  which gives
                                                          immediate result for each command.
                           Flying Circus".
                                                            IDLE  stands for  Integrated  Development  and Learning
                                                          Environment.
                                                            The input() function takes the user’s input while a program
                                                          executes.
                                                            The print() function prints or sends the output to the standard
                       According to a survey,             output device, which is usually a monitor.
                         in the UK in 2015,                 Variables are memory reference points where we store values
                          Python overtook                 which can be accessed or changed later.
                       French to be the most                A data type specifies the type of value a variable can contains.
                         popular language                   Comments  enable  us  to  understand  the  way  a  program
                         taught in primary                works.
                              schools.                      Operators can be defined as special symbols which perform
                                                          arithmetic and logical computation.
                                                            Arithmetic operators perform arithmetic operations between
                                                          two operands.
                                                            The assignment operators are used to assign the value of the
                                                          right expression to the left operand.
                       Python does not need                 Relational operators are used to compare the value of the two
                       a compiler to execute              operands and returns True or False accordingly.
                            a program.                      Precedence of operators determines the order in which the
                                                          operators are executed.

                      140   Premium Edition-VI

| 137 138 139 140 141 142 143 144 145 146 147 |