1try:
2 # Note: Python 2.x users should use raw_input, the equivalent of 3.x's input
3 age = int(input("Please enter your age: "))
4except ValueError:
5 print("Sorry, I didn't understand that.")
6else:
7 if age >= 18:
8 print("You are able to vote in the United States!")
9 else:
10 print("You are not able to vote in the United States.")
11