Advertisement
Blessing988

Untitled

Feb 11th, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. def divisible_by_three_and_four(number:int):
  2.     if number%3==0 and number%4==0:  
  3.         print(True)              #if the number is divisible by both 3 and 4
  4.     else:
  5.         print(False)             #if the number is not divisible by both 3 and 4 or either 3 or 4
  6.  
  7. divisible_by_three_and_four(18) #Example
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement