Create a program that prompts user for their age and tell them if they can vote in python
age = int(input("How old are you? "))
if age >= 18:
print("Congratulations! You are eligible to vote.")
else:
print("Sorry, you are not eligible to vote yet.")
Create a program that prompts user for their age and tell them if they can vote in python
age = int(input("How old are you? "))
if age >= 18:
print("Congratulations! You are eligible to vote.")
else:
print("Sorry, you are not eligible to vote yet.")
GUYS IF YOU HAVE ANY DOUBT. PLEASE LET ME KNOW