While Loop FRQHW
While Loop FRQHW
For the following questions, write the code that would satisfy the following questions.
4. Password Validator
Write a program that prompts the user to enter a password. If the password is incorrect, it should
keep asking for the password. If the password is "open123", print "Access Granted" and stop the
loop. If any attempt includes the word "exit", print "Exiting..." and stop the loop without granting
access.