Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #Divisable By Three and Four Function
  2. def divisible_by_three_and_four(number):
  3.     """This function accepts a number as argument and return its boolean value True when it is divisible by 3 and 4 otherwise False"""
  4.     if number % 3 == 0 and number % 4 == 0:
  5.         return True
  6.     else:
  7.         return False
  8. divisible = divisible_by_three_and_four(24)
  9. print(divisible)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement