Computer Science, asked by bernadethlyngdoh, 4 months ago

write a program to check whether the entered age of a person is > = 18 display a message "you are eligible to vote", otherwise display a message "you are not eligible to vote"​

Answers

Answered by ChAish
4

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


avishchoudhary8830: oh python me likhna tha...
avishchoudhary8830: i thought it to be java
avishchoudhary8830: achha
Similar questions