User = input('Username: ') Pass = input('Password: ') if User != 'jim59' : print('Sorry, but your username is not recognised.') if Pass != 'bananas' : print('Sorry, but your password is incorrect.') if User == 'jim59' and Pass == 'bananas' : print('Welcome!')