[Tutor] help

Lie Ryan lie.1296 at gmail.com
Thu Jul 16 22:33:17 CEST 2009


jonathan wallis wrote:
> i have a duel loop that looks like this            while y > 0 and x > 0:
> i cant figure out if there is a way to make so if one loop ends it says
> something different than if the other loop ends.
> 

while x > 0 or y > 0:
    ...
if x > 0:
    print 'x is greater than 0'
elif y > 0:
    print 'y is greater than 0'
print 'what should happen when both x>0 and y>0 is true?'



More information about the Tutor mailing list