NOT help


#1

Hello, how is the following True?

[Set bool_three equal to the result of not 10 % 3 <= 10 % 2]

10 divided by 3 is roughly 3.33, while 10 divided by 2 is 5.
3 is indeed less than (or equal to) 5, making this expression True.
'Not' True = False right?


#2

No. % is a modulo. It expresses the remainder of the two numbers when the second number is divided by the first. So, 10 % 3 = 1 because 3 goes into 10 3xs (9) leaving a remainder of 1. 10 % 2 = 0 because 2 goes into 10 5 times leaving a remainder of 0. So, 1 <= 0 is False. Not False is True.


#3

Makes sense now, forgot about % rules. Thank you!