help4code-logo
  • 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

  1. Home
  2. Programs
  3. Python
  4. Control Statements
Image

Programs - Python - Control Statements

  • Programs
    • WAP to check whether a person is eligible to vote or not
    • WAP to check whether a number is even or not
    • WAP to print the largest of the three numbers
    • WAP for basic calculator
    • WAP to check entered character in vowel or not
    • WAP to check whether it is a leap year or not
    • WAP for to check greater number among two variables
    • to check result on the basis of marks obtained in each paper
    • WAP to check among three numbers at one condition is true
    • WAP to check the result based upon the grade

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 !!
Help4Code

The help4code.com - An e-learning educational website where all computer science students can find rich collection of computer language programs which will help in exploring computer programming.

  • About
  • Associated Colleges
  • Leadership
  • Careers
  • Our Recruiters
  • Community
  • Terms
  • Privacy
  • Help
  • Press
  • Contact
  • Directory

First Floor, Plot No. 4, Near Shat Ayu College, Ring Road Nagpur, Maharashtra, India - 440022
+91 9175287066[email protected]

© Copyright 2022 help4code.com.

  • My Account
  • Sign-in
  • Sign-up