print("\033c") username = "jim59" password = "bananas" usernameAttempt = input("Username: ") passwordAttempt = input("Password: ") if username == usernameAttempt: key = 4 else: key = 0 if password == passwordAttempt: secondkey = 3 else: secondkey = 0 if key + secondkey == 7: print ("Welcome!") elif key + secondkey == 4: print ("Sorry, but your password is not recognised") elif key + secondkey == 3: print ("Sorry, but your username is not recognised") else: print ("Both username and password are incorrect")