Posts

Showing posts with the label Write a python program to determine whether a person is eligible to vote.

Write a python program to determine whether a person is eligible to vote.

Image
                                       Write a python program to determine whether a person is eligible to vote. PROGRAM: age=int(input("Enter your age:")) if (age>=18):     print("You are eligible to vote.") else:     print("Sorry! You are not eligible to vote.") OUTPUT: Enter your age: 18 You are eligible to vote.