Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. def odd_even(num,*check):
  2. if num%4==0:
  3. return (num,'is a multiple of 4')
  4. if num %2==0:
  5. return (f'{num} is Even')
  6. else:
  7. print(f'{num} is Odd')
  8. for k in check:
  9. if k % num==0:
  10. return (f'{k} is divisible {num}')
  11. else:
  12. return (f'{k} is not divisible by {num}')
  13.  
  14. num=int(input('give me a num to check'))
  15. check=int(input('give me a num to divide'))
  16. print(odd_even(num))
  17. print(odd_even(num,check))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement