Because of the operation's priorities, the meaning of the expression is different. You need to put the parentheses: (0 < 10) != (1 < 5), to get the desired output.
Otherwise, your first expression means the same as (0 < 10) and (10 != 1) and (1 < 5) which is not the output you wanted.
If you are a beginner and want to know more about Python the do check out the Data Science with Python Course