First as You posted the 'full' answer which is against guidelines of CC.

I'd suggest to edit your post so no one can just copy ,paste and use it.

Now back to your question...

**First, if you're doing division, shouldn't the sign in the code below be / and not %?**

When you divide a number.

say if `X`

is divided by `Y`

,

You get two things.

`X / Y`

-- > Quotient say `Q`

and

`X % Y`

--> Remainder say `R`

`modulo`

is used to find this `R`

,It means It gives you remainder not quotient.

Example..

13 / 5 -- > gives you Quotient 2.

but

13 % 5 --> gives you Remainder 3.

One thing will make things more clear..

What is division? continued subtraction ? right?

Lets say we are doing this..

13 / 5...

so we do this..

13 - 5 = 8

8 - 5 = 3 as now 3 is less than 5 so we can't subtract more .

so number of times we subtract is called doing /

and whatever remains is called finding %

here..

so your Q is 2 (as You can subtract two times)

and your R is 3(finally left value)

One question.

Does / makes sure that a number is divisible by other number?

Now lets see one more example..

15 / 3

15 - 3 = 12

12 - 3 = 9

9 - 3 = 6

6 - 3 = 3

3 - 3 = 0

Your Q is 5(as you're dividing 3 five times from 15)

Your R is 0(because there is nothing left)

You can see Q is not 0 but 5

As remainder is 0 when a number divides other.

so when Remainders gets 0,we definitely/surely can say that a number is totally divisible by other.

`"if number % 3 == True"?`

4 - 4 == 0 will return True or False? True

0 == 0 will return True of False? True

what this will return..

True == 4?

False.

(There are scenarios when different data types comparison leads to True ,in this example,its not)

In your example..

`number == True`

always produce`False`

.