Computer Science, asked by ajayshah49093, 7 months ago


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 adarshs5122005
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