DEV Community

PERUMAL S
PERUMAL S

Posted on

Task 3 Qsn-7

Create a program that takes a person’s age as input and checks if they are eligible to vote (age 18 or older).

Ans

Name=input("enter your name:")
age=int(input("enter your age:"))

if age>=18:
print("you are eligible to vote")
else:
print("you are not eligible for vote")

Top comments (0)