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
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
Biology,
1 month ago
Math,
1 month ago
India Languages,
2 months ago
Art,
9 months ago
English,
9 months ago