So this is my code
login = input("Whats the keyword?\n")
if login == "3faze":
print("Ok I will give you access!")
access = True
else:
print("Wrong! Try opening the program again!")
t.sleep(5)
access = False
if access == True:
while True:
action = input("What do you want to do?")
if action == "get passwords" or action == "Get Passwords" or action == "Get passwords" or action == "get Passwords":
print("Ok")
while True:
which = input("Which password do you want to get?")
if which == "google" or which == "Google":
print(str(passwords[0] + passwords[1] + passwords[2] + passwords[3] + passwords[4]))
close = input("Do you want to close?")
if close == "yes" or close == "Yes" or close == "yea" or close == "Yea" or close == "yea":
break
t.sleep(1)
else:
print("Ok")
t.sleep(1)
Where it says break i would like to break the two nested loops. Thx for the people who help. Im making this for a password manager, as you can probably tell there is some more code up there but i dont want to show it because it has my passwords, if needed i will make a template without those passwords.