← Back to challenges

Multiple of 100

PythonMediumalgebraconditionsmathvalidation

Instructions

Create a function that takes an integer and returns True if it's divisible by 100, otherwise return False.

Examples

divisible(1) ➞ False

divisible(1000) ➞ True

divisible(100) ➞ True

Notes

  • Don't forget to return the result.
  • If you get stuck on a challenge, find help in the Resources tab.
  • If you're really stuck, unlock solutions in the Solutions tab.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Using the "and" Operator