def even(n):
if n%2==0:
print 'Even number'
else:
print 'Odd Number'
n=int(raw_input('Enter the number to check even or not:'))
even(n) # No return from function but the message is displayed inside the function itself
No comments:
Post a Comment