Advertisement
Captainctc

Untitled

Feb 20th, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #a program to check if a number is divisible by 3 and 4
  2. def divisible_by_three_and_four(number): #function definition
  3.       if (number % 3) ==0 and (number % 4)==0:
  4.          return "true"
  5.       else:
  6.          return "false"
  7. print(divisible_by_three_and_four(24)) #final output print out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement