Task 3 Qsn-7

PERUMAL S - Jul 16 - - Dev Community

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")

. . . . . . . . . . . .
Terabox Video Player