On 2011-01-12, Jason Staudenmayer <jas...@adventureaquarium.com> wrote: > Return False instead of break should work > > else: > print "You guessed it! The number was", the_number > print "And it only took you", tries, "tries!\n" > return False
Since he isn't in a function, that isn't any good. He would import sys and use sys.exit() but that rather defeats the purpose of having a single entry and exit point to the loop. -- http://mail.python.org/mailman/listinfo/python-list