Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def divisible_by_three_and_four(number:int):
- if number%3==0 and number%4==0:
- print(True) #if the number is divisible by both 3 and 4
- else:
- print(False) #if the number is not divisible by both 3 and 4 or either 3 or 4
- divisible_by_three_and_four(18) #Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement