Write a program in Python Input age of the person, if age>=18 then show the message “Valid voter” else show the message “Invalid voter”.
Answers
Answered by
2
The Python program to find whether a person is a valid voter or not has been attached above. Kindly check it!
Attachments:
Answered by
3
usin = int(input("Enter your age : "))
if age >= 18:
print("Valid voter")
else:
print("Invalid voter")
- We took input in a variable named "usin".
- Then we designed the if...else... framework which worked according to the given conditions.
Hope it helps...
Similar questions