Question: Write a script like below that reads MIDAS/name and displays the message (for example, the screenshot here), if the following requirements are satisfied: 1.

Write a script like below that reads MIDAS/name and displays the message

 

Write a script like below that reads MIDAS/name and displays the message (for example, the screenshot here), if the following requirements are satisfied: 1. Only lower-case letter [a-z) are allowed 2. MIDAS/name must be between 4 to 8 characters Test your script with the following examples: Your MIDAS /name with one upper case A string less than 4 characters A string longer than 8 characters Your MIDAS/name in lower case, between 4-8 characters in length Enter your MIDAS ID: Svats You must enter a valid MIDAS ID It must be lowercase and betwen 4-8 characters only! Try again: SV You must enter a valid MIDAS ID It must be lowercase and betwen 4-8 characters only Try again: shobhavatsa You must enter a valid MIDAS ID It must be lowercase and betwen 4-8 characters only! Try again: svatsa Thank you! Your MIDAS ID is: svatsa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is a Python script that meets the requirements python while True midasname inputEnter your MIDA... View full answer

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 Physics Questions!