Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 (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
Step: 1
Here is a Python script that meets the requirements python while True midasname inputEnter your MIDA...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started