even or odd . write a program to check if the given number is even or odd
def even(x): if x % 2 == 0: print('{} is an even number'.format(x)) else: print('{} is an odd number'.format(x)) even(1) 1 is an odd number
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment