Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """ The function determines if a number is evenly divisible by both 3 and 4
- and it accepts a number argument"""
- def divisible_by_three_and_four(number):
- # Mathematical expression of determining evenness in the division
- if number % 3 == 0 and number % 4 == 0:
- return True
- else:
- return False
- # Function Invokation
- 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