Python Programs | IT Developer
IT Developer

Python Programs



Share with a Friend

Python Programs - Conditional Statements

Check if a person is eligible to vote - Python Program

Example 1 :

age = int(input("Enter age: ")) if age >= 18: print("Eligible to vote") else: print("Not eligible")

Output

 
OUTPUT  :
Enter age: 17
Not eligible