In my introduction to computer science class, we were given a problem where we had to create a loop that asked for a persons password:
while True:
password = input('What is your password?')
if password == "abc123":
break
print("Please Try Again")
print("Welcome!")
How do I change it so that after 5 tries/guesses of the password, it says "all out of password guesses" (or something of that nature)?
for
loop ?