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