Ad
Code
Diff
  • def dividedByThree(number):
        return number != 0 and not number % 3
    • def dividedByThree(number):
    • return number % 3 == 0 if number != 0 else False
    • return number != 0 and not number % 3