Page 143 - Plus_V2.2_C8_Flipbook
P. 143

Program 10: To add first five natural numbers.















                 You will get the following output:


















                  Program 11: To print the given stars.











                 You will get the following output:



















                        Let’s CatCh uP


                   What will be the output of the following Python code:
                   i = 0
                   while (i == 0): print(“Hello Touchpad”)

                   ___________________________________________________________________________________



                                                                                                  Loops in Python  141
   138   139   140   141   142   143   144   145   146   147   148