Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Divisable By Three and Four Function
- def divisible_by_three_and_four(number):
- """This function accepts a number as argument and return its boolean value True when it is divisible by 3 and 4 otherwise False"""
- if number % 3 == 0 and number % 4 == 0:
- return True
- else:
- return False
- divisible = divisible_by_three_and_four(24)
- print(divisible)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement