[Solved] Why x = 7 < 5 ; print(x) gives false in python? [closed]
You seem to have mixed up the direction of the inequality operators. When Python sees x = 7 < 5, it finds the truth value of the inequality 7 < 5 and assigns it to x. 7is not less than 5, so the statement 7 < 5 is False. So Python says x = False. … Read more