Advertisement
Adehumble

Week3 Coding Exercise 8

Feb 11th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. #8
  2. def divisible_by_three_and_four(num):
  3.     if num%3==0 and num%4==0:
  4.         print("True")
  5.     else:
  6.         print("False")
  7. print("This program will help you test if a number is divisible by both 3 and 4")
  8.    
  9. user_input=int(input("Enter any number of your choice: "))
  10. divisible_by_three_and_four(user_input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement