print('--------------') print('Security check') print('--------------') user = input('Who is using this right now? ') if user == 'Hugo': realpassword = 'a**2+b**2=c**2' chock = 0 while chock == 0: password = input('Enter password: ') if password == realpassword: chock = 1 print('Welcome, Hugo!') else: chock = 0 else: print('User not recognised.') check = 0 while check == 0: realpassword_nonHugo = input('Please enter new password: ') checking = input('Are you sure? ') if checking == 'Yes': check = 1 print('Welcome, ', user + '!') else: check = 0