realUsername = "jim59" realPassword = "bananas" userUsername = input("Enter the Username: ") if userUsername == realUsername: userPassword = input("Enter the password: ") if userPassword == realPassword: print("Welcome!") else: print("Sorry, but your password is incorrect") else: print("Sorry, but your username is not recognised")