Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started