Question: USE PYTHON Create a program that prompts the user for a username and password. The correct username should be python and the correct password should

USE PYTHON

Create a program that prompts the user for a username and password. The correct username should be python and the correct password should be csci135. See below for example output. (Different messages depending on if user name or password are correct.) Only allow the user to make 3 attempts.

Welcome to my secret program! Please enter your username: Trish Please enter your password: Duce Invalid username and password Please enter your username: Trish Please enter your password: csci135 Invalid user name Please enter your username: python Please enter your password: Duce Invalid password Too many attempts! You are locked out! 

Example output if username and password are correct.

Welcome to my secret program! Please enter your username: python Please enter your password: csci135 Thanks for entering the correct username and password! I hope you have a GREAT day!! 

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!