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
Get step-by-step solutions from verified subject matter experts
