Why is my program not looping back to the 3rd line whenever I have exhausted all my attempts?
counter = 1;
for i in range(1):
password = input('Enter your desired password: ');
print('Registration successful');
x = 5;
for i in range(5):
print(' Login ');
login = input('Enter password: ');
if login == password:
counter -= 1
print(' Welcome ');
print('Account Information: ');
print('Name: ',name);
print('Age: ',age)
break;
else:
x=x-1;
if x==0:
print('Account locked');
else:
print(' Wrong password');
print(x,' trial(s) left ');
