
April 30th, 2004, 11:30 PM
|
|
Contributing User
|
|
Join Date: Apr 2004
Location: Canada
Posts: 242
Time spent in forums: 11 h 3 m 17 sec
Reputation Power: 0
|
|
The while statement will loop as long as the expression next to it is true. Using the word "True" is like using while 1:, or in other words, it will loop forever. You don't need to define the "True" constant, because it is built into Python, so just use "True".
To answer the question in your other thread: The variable "count" is used to count the amount of interations, and once it passes 10, the loop exits.
This information is all avaible on Python's website, so please have a look: Python.org
Last edited by NetBSD : April 30th, 2004 at 11:35 PM.
|