Question: PYTHON Write a program of the following: Ask the user to Enter 's' for single or 'm' for married: Validate that input to allowonlys, S,
PYTHON
Write a program of the following:
Ask the user to "Enter 's' for single or 'm' for married:"
Validate that input to allowonlys, S, m, or M
Print "Invalid input" if an incorrect value was entered and have the user re-enter the input
Upon successful input, display "You entered single" or "You entered married" depending on their input.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
