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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!