eLearning
Tutorials
Programs
Interview Questions
Technical Questions
C Language
C++
JAVA
HTML & CSS
PHP
AJAX
J2EE
SQL
jQuery
Go back to Home
Our Placements
Tutorials
Programs
Interview Questions
Technical Questions
Live Training
Our Placements
Associated Colleges
Our Recruiters
Back
C Language
C++
JAVA
HTML & CSS
PHP
AJAX
J2EE
SQL
jQuery
Programs
Home
Programs
Python
Control Statements
Programs - Python -
Control Statements
Program:
age = int (input(
"Enter your age? "
))
if
age>=
18
:
print(
"You are eligible to vote !!"
)
else
:
print(
"Sorry! you have to wait !!"
)
Output:
Enter your age? 12
Sorry! you have to wait !!
Enter your age? 19
You are eligible to vote !!