Question: If Else Statements: Question 6 : ( 2 5 ) a . Ask the user to input his / her age. Check whether the age
If Else Statements:
Question :
a Ask the user to input hisher age. Check whether the age is equal to or greater than if so print You can vote If not, print Sorry you are not eligible hint: remember that Python firsts takes user input as string type. So you may have to change it to numerical type by using int or float function.
b Can you modify the program such that if the age is not yet than the program prints You have to wait X years Where X is the number of years left for the user to be
Use the following Syntax to write ifelse code:
If condition:
Value if True
else:
Value if False
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
