← Back to challenges

Check if an Integer is Divisible By Five

PythonMediumnumbersmathvalidation

Instructions

Create a function that returns True if an integer is evenly divisible by 5, and False otherwise.

Examples

divisible_by_five(5) ➞ True

divisible_by_five(-55) ➞ True

divisible_by_five(37) ➞ False
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.