def odd_even(num):
if num%2== 0:
return “even”
else:
return “odd”
print(odd_even(8))
can any one tell
def odd_even(num):
if num%2== 0:
return “even”
else:
return “odd”
print(odd_even(8))
can any one tell
For me it seems ok, unless you messed up the indentation.
If it shows something like IndentationError
then you formatted the code incorrectly.
it shows me nothing after running the code
Post a screenshot of the code/cells you did run.