Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Why this no work ?
10-13-2014, 11:04 AM #1
- Join Date
- Oct 2014
- Thanked 0 Times in 0 Posts
Why this no work ?
voting_age = 18
user_age = int(input("What is your age")
if userage >= voting_age:
print("You are old enough to vote")
elif print("You are too young to vote")
10-13-2014, 07:33 PM #2
You don't have any "if" test following the elif
You need to use else instead of elif
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.