Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an infinite while loop. Inside the loop, prompt the user to enter a person s first name. The program should continue to prompt the

Create an infinite while loop. Inside the loop, prompt the user to enter a persons first name. The program should continue to prompt the user for a first name until the user types in your first name. Using an if statement check to see if the entered name equals yours. You can use the .upper() string method to convert the user input to uppercase. Print out a congratulations message when the user types in the correct name. Use the break statement to end the loop once the correct name is typed into the console.
Example output is shown below. Note this output is for my name (MIKE). Ensure your program works for your name:

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions