Topic NOT


#1

I've been going through the Conditionals & Control Flow and for some reason I don't remember how I solved this question.

The question is:

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

The answer should be not False; or simply True

But the answer should be not True right? Because it says that 3 is not smaller than 5. The 3 came from 10%3 and 5 came from 10%2. Can someone care to explain I'm so mind blown, haha. Thanks in advance.


#2

is the same as: 1 <= 0

It sounds like you are thinking division when you should be thinking modulo.


#3

You're right. Thanks!


#4

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