Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 80 - 2612_Digimind
P. 80

    CHAPTER
                      ITERATION IN PYTHON                                                                      7

                                        Hello  Sweta!  I have a  question
                                        for you.  Do you  know  how we           Topics Covered                      95%
                                        repeat a task again and again?              Iterative Statements
                                                                                    Jump Statements
                                                                                    Some More Programs

                      Yes, Techie. We repeat tasks when
                      we want to do the same work many
                      times, like practising sums.

                                        Very good! But how do you think a computer repeats a task?

                                                   I am not very sure about that, Techie.

                                        In programming, repetition is called iteration. Python uses special statements
                                        called loops to repeat instructions. In this chapter, you will learn how to use
                                        iterative statements in Python to make programs faster and easier.

                       78   Premium Edition-VIII

| 75 76 77 78 79 80 81 82 83 84 85 |