realuser= 'jim59' realpassword= "bananas" user = input('Username:') password = input('Password:') if password == realpassword: if user == realuser: print("Welcome!") elif user == realuser: print('Sorry, but your password is incorrect') else: print('Sorry, but your user name is not recognised.')