Page 96 - TP-Play_V-2.0_Book-6
P. 96

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














            The result of the above program is:

















               Recap



                    A computer language is the medium by which instructions are transmitted to the computer
                    to perform a specific task.
                    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.
                    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.

                    Operators can be defined as special symbols which perform arithmetic and logical computation.




                                                   Exercise



            A.  Tick ( ) the correct option.
               1.   What will be the output of the following expression?

                  22 % 3
                  a.  7                                            b.  1

                  c.  0                                            d.  4



             96       Play (Ver. 2.0)-VI
   91   92   93   94   95   96   97   98   99   100   101