Q4 Write a program to input name and age of a person from the user. The
display whether the person can vote or not. The voting age is 18 and above to be eligible to
vote. The name of the user should also be displayed with suitable messages.
Answers
Answered by
3
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.")
Output
Enter Age : 19
You are Eligible for Vote.
mark me as brainliest
Similar questions
Chemistry,
3 months ago
Biology,
3 months ago
Social Sciences,
3 months ago
Accountancy,
7 months ago
Computer Science,
7 months ago
Biology,
11 months ago