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 trial

Python

How do I type the function for "is divisible by" in the coding challenge? (If number is divisible by 3,5)?

I understand the concepts but this exercise seems to involve math functions that I don't remember covering- unless I'm missing something?

1 Answer

You'll use % what % does is gets the remainder you'll want to check if there is no remainder for each of a number when the % 3 or %5 is used against it.