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

Programiz Python Voting Eligibility Code

The document contains a Python code snippet that checks if a user is eligible to vote based on their age. If the age is 109 or older, it indicates that the user is not eligible to vote; otherwise, it confirms eligibility. The code execution was successful, and the output displayed was 'you are not eligible to vote' for an input age of 19.

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)
8 views1 page

Programiz Python Voting Eligibility Code

The document contains a Python code snippet that checks if a user is eligible to vote based on their age. If the age is 109 or older, it indicates that the user is not eligible to vote; otherwise, it confirms eligibility. The code execution was successful, and the output displayed was 'you are not eligible to vote' for an input age of 19.

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:19


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

You might also like