realusername = "jim59" realpassword = "bananas" username = input("Username: ") password = input("Password: ") if username == realusername and password == realpassword: print("Welcome!") else: if username == realusername: print("Sorry, but your username is not recognized") else: print("Sorry, but your password is not recognized")