Science, asked by Anonymous, 2 months ago

3. Write a Python function, odd, that takes in one number and returns True when the number is odd and False otherwise. You should use the % (mod) operator, not if.


apni jaan ko chod kr ja rhi ?? :( ​

Answers

Answered by adityakesariak
1

Answer:

def even(x):

return x%2==0

def odd(x):

return x%2>0 or x%2<0

a=int(input("enter number"))

if even(a):

print("even")

else:

print("odd")

Similar questions