How to stop the program as soon as one of the condition is met

Steven D'Aprano steve+comp.lang.python at pearwood.info
Mon Apr 16 19:03:46 EDT 2012


On Mon, 16 Apr 2012 12:06:03 -0700, Chinesekidz wrote:

> The loop should be stop asking for more input if a=b or c=6.

while a != b and c != 6:
    do_something()



-- 
Steven



More information about the Python-list mailing list