Program
Exectp the age
of a user after
excepting
to
the greater or equal to
age check Age of
10
Print
Answers
Answered by
1
Answer:
note: Python 2.7 users should use `raw_input`, the equivalent of 3.X's `input` age = int(input("Please enter your age: ")) if age >= 18: print("You are able to vote in the United States!") else: print("You are not able to vote in the United States.")
The program works as expected as long as the the user enters meaningful data.
C:\Python\Projects> canyouvote.py Please enter your age: 23 You are able to vote in the United States
hope u get it answer
marked me as brainlist
follow me guys
and like plz ......
Answered by
0
Attachments:
Similar questions