Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def divisible_by_three_and_four(number):
- if (number // 3) and (number // 4):
- return True
- else:
- return False
- print(divisible_by_three_and_four(3))
- print(divisible_by_three_and_four(4))
- print(divisible_by_three_and_four(12))
- print(divisible_by_three_and_four(18))
- print(divisible_by_three_and_four(24))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement