Page 147 - Plus_V2.2_C8_Flipbook
P. 147

Let's exPLore                                                                 Experiential Learning


                 .   Surf the Internet and explore why Python is more famous than the other languages.




                     teCh PraCtiCe                                                                Computational Thinking


                     Write a program to:

                     1.  use the for loop to print the numbers 8, 11, 14, 17, 20, . . . , 83, 86, 89.
                     2.  use the for loop to print the numbers 100, 98, 96, . . . , 4, 2.


                     3.  print 1 to 100 using while loop.
                     4.   find out the sum of numbers within the range 1 to 100 using while loop.


                     5.  calculate the sum of first ten even numbers by using the while loop and the for loop.

                     6.  print first 20 odd numbers in decreasing order using while loop.





                                                         For The Teacher


                       Discuss about all the iterative statements of Python with the students.
                       Go through all the topics covered in this chapter.









































                                                                                                  Loops in Python  145
   142   143   144   145   146   147   148   149   150   151   152