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
Science,
4 months ago
Music,
4 months ago
English,
4 months ago
Accountancy,
8 months ago
Computer Science,
8 months ago