You could loop it.
while True: user = input('Username> ') if user == 'Myuser': passwd = input('Password> ') if passwd == 'mypass': print(f'{user}, you are now loggerd in') break else: print('Wrong password. Please try again.') continue else: print('Wrong username. Pleasew try again.') continue
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags