write a python program that recieves name and age from the user. The program should display whether the person can vote or not. The voting age is 18. The name of the user should also be displayed with a greeting.
Answers
Answered by
2
Answer:
Input age of the person and check whether a person is eligible for voting or not in Python.
This is a simple if else example in the python - Here, we will read the age of the person by using input() function and convert the entered age value to the integer by using int() function. Then we will check the condition, whether age is greater than or equal to 18 or not - if age is greater than or equal to 18, the person will be eligible for the voting
Your ans
Follow and mark me as brainlist
Thank you !!
Similar questions