Page 140 - TP_Prime_v2.2_Class_6
P. 140

However, the text written inside triple quotes (''' or """) is also considered as comment.
                  You can use the triple quotes to write multiline comments. For example,

                                       '''This is                   """This is

                                            Multiline                   Multiline

                                            Comment'''                  Comment"""

           Prime (Ver. 2.2)-VI  •  Python is a popular high-level programming language.
                                   Let's Revisit




                  •  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 executes.

          138     •  The print() function prints 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.






                                                     Mind Drill







                      Rapid Fire


                  1.  Tick (✓) the correct option.

                      a.  Python is a ____________ programming language.

                         (i)  High-level                               (ii)  Middle-level

                         (iii)  Low-level                              (iv)  None of these

                      b.  Which of the following variable is incorrect?

                         (i)  NaMe                                     (ii)  _name

                         (iii)  @value                                 (iv)  number
   135   136   137   138   139   140   141   142   143   144   145