Page 115 - Plus_V2.2_C6_Flipbook
P. 115

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














                 1.  Tick ( ) the correct option.
                                                                                              Python is one of the
                    a.   What will be the output of the following expression?                 official languages at

                       22 % 3                                                                       Google.

                       (i)  7                                          (ii)  1






                                                                                               The name Python
                           Let’s BaCk-uP                                                     was derived from the

                       Python is a popular high-level programming language.                  British comedy series
                        Interactive  Mode  is a command  line shell  which gives                "Monty Python's
                      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
                      output device, which is usually a monitor.                             According to a survey,
                        Variables are memory reference points where we store values            in the UK in 2015,
                      which can be accessed or changed later.                                   Python overtook
                        A data type specifies the type of value a variable can contains.     French to be the most
                        Comments  enable  us  to  understand  the  way  a  program             popular language
                      works.                                                                   taught in primary
                        Operators can be defined as special symbols which perform                   schools.
                      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.
                        Relational operators are used to compare the value of the two        Python does not need
                      operands and returns True or False accordingly.                        a compiler to execute
                        Precedence of operators determines the order in which the                 a program.
                      operators are executed.




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