I'm trying to learn more about if statements. I tried to create a program that asks the user to enter amounts of beer and outputs different answers when the amount increases. I can't figure out what I'm doing wrong.
What I expect to happen is when I type in the number eg. 5 the result should be "Beer is awesome." because it's lower than 50. And if I type in 60 it should output "That's a lot of beer." because it's higher than 50 and lower than 100.
I've read the Python documentations and still don't figure it out. This is my code:
print "How many cans of beer do you want?"
beer = raw_input("Enter your amount: ")
if beer >= 1:
print "Beer is awesome."
elif beer >= 50:
print "That's a lot of beer."
elif beer >= 100:
print "You're drinking way too much beer, man."
else:
"Did you make a choice larger than 100? If yes, then you're crazy!"