Question: 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 user

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 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:
Enter a first name: steve
Enter a first name: bert
Enter a first name: sandra
Enter a first name: mike
Congratulations, you entered my name!
 Create an infinite 'while' loop. Inside the loop, prompt the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!