Page 111 - Trackpad_V4.0_C8_Flipbook
P. 111

2.  The continue statement breaks the loops one by one.

                        3.  To come out of the infinite loop, we can either close the program window or press Ctrl + C.

                        4.  A sequence is a succession of values bound together by a single name.

                        5.  The while statement is the looping statement.

                        Fill in the blanks with the correct words.



                                                Hints  infinite,  break,  iterative,  continue,  two

                        1.   Looping statements are also knowns as                  statements.

                        2.   Python provides                  types of looping statements.
                        3.  The                    loop never ends.
                        4.  The                    and                    are the jump statements in Python.



                  Q     Answer the following questions:
                    A
                        1.  What is looping?






                        2.  What are the values generated by the function range(10, 20, 2)?




                        3.  What is the use of Jump statement?






                        4.  Define the use of while statement with the help of an example.














                        5.  Distinguish between continue and break statements.















                                                                                                 Loops in Python   109
   106   107   108   109   110   111   112   113   114   115   116