#6-why it is True


#1

In the bool four of lesson 6, it shows -(1 ** 2) < 2 ** 0 and 10 % 10 <= 20 - 10 * 2

Why it is True not False?

In my opinion, left side -1 < 1 True
right side 1 <= 0 False

Or is that because right side doesn’t have brackets?


#2

the right side is: 0 <= 0, which is true

% is the modulo operator, not the division operator (/)


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.