Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjonas zerbib
187 Pointschallenge.py
Hi, I don't understand why If the number is divisible by 3, print "is a Fizz number." please explain me the is_fizz = number / 3 == 0 Specifically why it has to be different from 0 thanks
1 Answer
Steven Parker
231,275 PointsIt's not the division operator (/) that is used here; but the modulo operator (%), also known as the remainder.
See the answers given to this previous question for more details on the difference.