Page 115 - 2626_South Point_C-6
P. 115

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















                                                                                              Python is one of the
                                                                                              official languages at
                           Let’s BaCk-uP                                                            Google.

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






                                                                                             Python does not need
                                                                                             a compiler to execute
                                                                                                  a program.






                                                                                        Introduction to Programming  113
   110   111   112   113   114   115   116   117   118   119   120