<reponame>webdevhub42/Lambda<filename>WEEKS/CD_Sata-Structures/_MISC/misc-examples/func.py
# Write a function is_even that will return true if the passed in number is even.
def is_even(num):
    if int(num) % 2 == 0:
        return True
    else:
        return False


# Read a number from the keyboard
num = input("Enter a number: ")

# Print out "Even!" if the number is even. Otherwise print "Odd"
even = is_even(num)
if even == True:
    print("Even!")
else:
    print("Odd!")
