Created
February 27, 2014 20:18
-
-
Save blammothyst/9258685 to your computer and use it in GitHub Desktop.
Code from Learn Python The Hard Way (.org) ex 30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
people = 30 | |
cars = 40 | |
buses = 15 | |
if cars > people: | |
print "We should take the cars." | |
elif cars < people: | |
print "We should not take the cars." | |
else: | |
print "We can't decide." | |
if buses > cars: | |
print "that's too many buses." | |
elif buses < cars: | |
print "Maybe we could take the buses." | |
else: | |
print "We still can't decide." | |
if people > buses: | |
print "Alright, let's just take the buses." | |
else: | |
print "Fine, let's stay home then." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment