13. Write a python program to check whether the user is eligible to vote or not
Share
13. Write a python program to check whether the user is eligible to vote or not
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Verified answer
# input age
age = int(input("Enter Age : "))
# condition to check voting eligibility
if age>=18:
status="Eligible"
else:
status="Not Eligible"
print("You are ",status," for Vote.")
Program:# input age age =
int(input("Enter age:"))#condition to check voting eligibility if age>=18; status="Eligible" else status="not eligible" print ("you are",status,"for vote.")
thank u