This content originally appeared on DEV Community and was authored by PERUMAL S
Create a program that takes a person’s age as input and checks if they are eligible to vote (age 18 or older).
Ans
Name=input("enter your name:")
age=int(input("enter your age:"))
if age>=18:
print("you are eligible to vote")
else:
print("you are not eligible for vote")
This content originally appeared on DEV Community and was authored by PERUMAL S
Print
Share
Comment
Cite
Upload
Translate
Updates
There are no updates yet.
Click the Upload button above to add an update.
APA
MLA
PERUMAL S | Sciencx (2024-07-16T17:55:31+00:00) Task 3 Qsn-7. Retrieved from https://www.scien.cx/2024/07/16/task-3-qsn-7/
" » Task 3 Qsn-7." PERUMAL S | Sciencx - Tuesday July 16, 2024, https://www.scien.cx/2024/07/16/task-3-qsn-7/
HARVARDPERUMAL S | Sciencx Tuesday July 16, 2024 » Task 3 Qsn-7., viewed ,<https://www.scien.cx/2024/07/16/task-3-qsn-7/>
VANCOUVERPERUMAL S | Sciencx - » Task 3 Qsn-7. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/16/task-3-qsn-7/
CHICAGO" » Task 3 Qsn-7." PERUMAL S | Sciencx - Accessed . https://www.scien.cx/2024/07/16/task-3-qsn-7/
IEEE" » Task 3 Qsn-7." PERUMAL S | Sciencx [Online]. Available: https://www.scien.cx/2024/07/16/task-3-qsn-7/. [Accessed: ]
rf:citation » Task 3 Qsn-7 | PERUMAL S | Sciencx | https://www.scien.cx/2024/07/16/task-3-qsn-7/ |
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.