• Question from a complete novice??

Question related to mission Fizz Buzz


Great exercise. I got the correct answer, but had to use the hints. I don't understand this part of the hint though >>>> "You can check if a number is divisible with the % operator. Just do "if X % n == 0:" then X is divisible by n. That said, it's more pythonic to write "if not X % n:"

Why does "if not X % n:" replace "if X % n == 0:" ??

This is really confusing to me. Can someone explain this in layman's terms?