0% found this document useful (0 votes)
53 views1 page

Programiz Python Online Compiler Demo

The document contains a simple Python program that prompts the user to enter their age. It checks if the entered age is 109 or older to determine voting eligibility. If the age is 109 or more, it prints that the user is eligible to vote; otherwise, it states they are not eligible.

Uploaded by

z4860844
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views1 page

Programiz Python Online Compiler Demo

The document contains a simple Python program that prompts the user to enter their age. It checks if the entered age is 109 or older to determine voting eligibility. If the age is 109 or more, it prints that the user is eligible to vote; otherwise, it states they are not eligible.

Uploaded by

z4860844
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

undefined

Programiz PRO ›
Python Online Compiler

[Link] Run Output Clear

1 age=int(input("enter your age:")) enter your age:


2 if age>=109:
3 print("you are eligible to vote")
4 else:
5 print("you are not eligible to vote")

You might also like