realusername= " jim59" userusername= input("Username:") realpassword= " bananas" userpassword= input("Password") condition1 = userusername == realusername condition2 = userpassword == realpassword if condition2 and not condition1: print("Sorry, but your username is not recongnised") if condition1 and not condition2: print("Sorry, but your password is incorrect") if condition1 and condition2: print ("Welcome!")