python – ERROR: My code is blocked without any errors

I'm starting to learn python and I wanted to create a kind of login, only that the code ends without having chosen to finish.




from time import sleep

print (& # 39; == & # 39; * 20) print (& # 39; == & # 39; * 8 & # 39; login & # 39 ;, & # 39; == & # 39; * 8) print (& # 39; == & # 39; * 19) print () print (& # 39; DIGIT 1 TO EXIT THE SYSTEM nDIGITE 2 TO CONTINUE & # 39;) opc = int (input (& # 39; 1 or 2: & # 39;))

while True: login = [] password = []

if opt == 1: print () print ("FINISHED") print () sleep (3) pause if opt == 2: print (& # 39; process & # 39;) print () sleep (4) print (& # 39; DIGIT 1 FOR CADASTRO nDIGITE 2 FOR LOGIN & # 39;) opc2 = int (input (& # 39; 1 O 2: & # 39;)) if opc2 == 1: print () print (& # 39; == & # 39; * 5, & # 39; REGISTRATION PROCESS & # 39 ;, & # 39; == & # 39; * 5) print () login_1 = input (& # 39; LOGIN: & # 39;) login = entry +[login_1] sleep (2) print ("saved") password_2 = input (& # 39; PASSWORD: & # 39;) password = password +[senha_2] sleep (2) print ("saved") print () opc3 = input (& # 39; WANTS TO MAKE THE LOGIN DIGITS 1 OR 2 TO EXIT: & # 39;) #ERRO AFTER if opc3 == 2: print () print ("FINISHED") sleep (2) pause if opc3 == 1: print () print (& # 39; == & # 39; * 5, & LOGIN & # 39 ;, & # 39; == & # 39; * 5) print () login_1 = input (& # 39; LOGIN: & # 39;) if login_1 in login: print () password_1 = input (& # 39; PASSWORD: & # 39;) Password: print () print (& # 39; process & # 39;) sleep (3) print (& # 39; LOGIN MADE & # 39;) pause another thing: print (& # 39; SENHA INCORRECT & # 39;) print () print (& # 39; DIGIT PASSWORD AGAIN & # 39;) print () Password: print () print (& # 39; process & # 39;) sleep (3) print (& # 39; LOGIN MADE & # 39;) pause another thing: pause another thing: print (& # 39; YOU DO NOT HAVE CADASTRO & # 39;) pause another thing: pause another thing: pause if opc2 == 2: print () print (& # 39; == & # 39; * 5 & # 39; login & # 39 ;, & # 39; == & # 39; 5 *) print () login_1 = input (& # 39; LOGIN: & # 39;) if login_1 in login: print () password_1 = input (& # 39; PASSWORD: & # 39;) Password: print () print (& # 39; process & # 39;) sleep (3) print (& # 39; LOGIN MADE & # 39;) pause another thing: print (& # 39; SENHA INCORRECT & # 39;) print () print (& # 39; DIGIT PASSWORD AGAIN & # 39;) print () Password: print () print (& # 39; process & # 39;) sleep (3) print (& # 39; LOGIN MADE & # 39;) pause another thing: print (& # 39; YOU DO NOT HAVE CADASTRO & # 39;) pause another thing: pause another thing: pause