Skip to content

Instantly share code, notes, and snippets.

@AtufaShireen
Created September 6, 2019 18:02
Show Gist options
  • Save AtufaShireen/1bd6e63a7074406c37dbdfd0d3f02cad to your computer and use it in GitHub Desktop.
Save AtufaShireen/1bd6e63a7074406c37dbdfd0d3f02cad to your computer and use it in GitHub Desktop.
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))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment