Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def odd_even(num,*check):
- if num%4==0:
- return (num,'is a multiple of 4')
- if num %2==0:
- return (f'{num} is Even')
- else:
- print(f'{num} is Odd')
- for k in check:
- if k % num==0:
- return (f'{k} is divisible {num}')
- else:
- return (f'{k} is not divisible by {num}')
- num=int(input('give me a num to check'))
- check=int(input('give me a num to divide'))
- print(odd_even(num))
- print(odd_even(num,check))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement