Created
September 6, 2019 18:02
-
-
Save AtufaShireen/1bd6e63a7074406c37dbdfd0d3f02cad to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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