[Tutor] while/if/elif/else loops
R. Alan Monroe
amonroe at columbus.rr.com
Tue Nov 1 04:10:34 CET 2005
> while tosses = 100<0:
I didn't run the program, but this immediately caught my eye as
looking kind of suspect. Was it a typo? Most programs usually
have a need for comparisons of equal, or greater/less, but it's really
rare to need both combined in one statement...
Also if you really _do_ want to check two things being equal, don't
forget to use double equal ( == ).
Alan
More information about the Tutor
mailing list