Answered step by step
Verified Expert Solution
Link Copied!

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... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Computer Architecture Fundamentals And Principles Of Computer Design

Authors: Joseph D. Dumas II

2nd Edition

1032097337, 978-1032097336

More Books

Students also viewed these Physics questions

Question

1. Walk to the child, look into his or her eyes.

Answered: 1 week ago

Question

5.12 Describe the key features of body dysmorphic disorder.

Answered: 1 week ago