Question: It asks the user for his name, gives an error message when the name length is shorter than 3 or longer than 1 5 ,
It asks the user for his name, gives an error message when the name length is shorter than or longer than and asks for his name again. When a valid name is entered, it also indicates his name and says "Welcome to the program!"
Write the Python code that prints the message and exits the program or terminates the program directly when the word 'quit' is entered?
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
