5.10.5 Better Password Prompt Code HS
Write a program that uses a loop and a half to prompt a user for a password. You should keep prompting the user for the password, and if they get it correct, break out of the loop. If they don’t get it correct, you should give them an error message.
Sample Run:
Enter password: 123123
Sorry, that did not match. Please try again.
Enter password: password
Sorry, that did not match. Please try again.
Enter password: CODEHS
Sorry, that did not match. Please try again.
Enter password: abc123
You got it!
Hint: Make sure to set the value of SECRET back to abc123 before running the autograder or submitting your program!