13. Write a python program to check whether the user is eligible to vote or not
Answers
Answered by
3
# 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.")
Answered by
1
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
Similar questions