See All Titles |
![]() ![]() Chapter 8—Conditionals and LoopsLike many other high-level languages, Python supports loops such as for and while, as well as if statements (and related). Python also has a built-in function called range() which enables Python's for loop to behave more like a traditional counting loop rather than the foreach iterative type loop that it is.
|
© 2002, O'Reilly & Associates, Inc. |