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
Chemistry,
2 months ago
Social Sciences,
2 months ago
Science,
2 months ago
India Languages,
4 months ago
Art,
11 months ago
English,
11 months ago