I'm trying to create this method in which the number of attempts is reset to 0 when "Y" is input, but every time I type any other letter than "Y" it runs as true and doesn't print my else statement. Any advice is greatly appreciated.
def reset_login_attempts(self):
if self.login_attempts==3:
Reset=input('Only type "Y" to restart: ')
if Reset == 'Y' or 'y':
print('The number of attempts have been set to 0.')
return self.login_attempts==0
else:
print('Try later')