[Tutor] Tutor Digest, Vol 67, Issue 22

Luke Paireepinart rabidpoobear at gmail.com
Mon Sep 7 00:35:52 CEST 2009


>
>
>>  Ummm, whats a branch? Haha, I know loops, but not branches.
>
A branch changes the program flow based on a condition.
Example:
x = int(raw_input("Please enter a number!"))
if x > 10:
    print "Your number was greater than 10!"
else:
    print "Your number was less than or equal to 10!"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090907/c7cc0893/attachment.htm>


More information about the Tutor mailing list