October 6th, 2004, 08:15 AM
You should also use the boolean values True or False; you're currently using two strings (yes and no) i.e.
connected = False
while not connected:
Note: The boolean values True and False can also be expressed as 1 and 0 respectivly. If you're running a version older than Python 2.3 then you will need to use these rather numbers. It might also be handy to know that an empty object (string, list, tuple or dictionary) are also treated as being False.
programming language development: www.netytan.com – Hula
Last edited by netytan : October 6th, 2004 at 08:20 AM.