Write a Python Program to check whether a Person is eligible to Vote or not

In this tutorial we are writing a Python Program to Check Eligibility for voting.

In India, to be eligible for voting, a person's age should be 18 or greater than 18We will use this criteria with the if else Conditional statement in our program.

Program Source Code : eligible_for_voting.py

1 age = int(input("Enter age : "))
2 
3 if age >= 18:
4     print("Eligible for Voting!")
5 else:
6     print("Not Eligible for Voting!")

Program Output : Run 1

Enter age : 20
Eligible for Voting!

Program Output : Run 2

Enter age : 18
Eligible for Voting!

Program Output : Run 3

Enter age : 17
Not Eligible for Voting!

Video Tutorial : Python Program to Check Eligibility for Voting