Write a function even_int that consumes an integer and produces "Even" if it is even and
"Odd" otherwise. You should use if and else for the two cases.
def even_int(n):
if n%2==0:
print("Even")
else:
print("Odd")
if __name__ == '__main__':
even_int(3)
Comments
Leave a comment