user = input("Username: ") password = input("Password: ") if user != "jim59" : print("Sorry, but your username is not recognised") else: if password != "bananas" : print("Sorry, but your password is incorrect") else: print("Welcome!")