# Make sure you can figure out (in your head - without actually executing it) what this prints
# under different inputs.
# E.g. what does ifs(12, 3, 5) print?
#        what does ifs(25, 25, 25) print?
#
def ifs(x, y, z):
    if ((y > z) or (z < x)):
        print("MOT")
        if (x < 10):
            print("HAI")
        elif (z < 10):
            print("BA")
        print("BON")
    else:
        if (x < 20):
            print("NAM")
        else:
            print("SAU")
        print("BAY")
    if ((z-y) > 0):
        print("TAM")

# Understand that for input like 1, 100000, only
# 'a is smaller' prints despite both elif expressions being true.
#
def testif(a, b):
    if (a < b):
        print('a is smaller')
    elif (a < 100):
        print('a is less than 100')
    elif (a < 1000):
        print('a is less than 1000')
    else:
        print("blah")

# Understand the difference between testif2a abnd testif2b
#
def testif2a(num):
    result = None
    if (num % 2) == 0:
        result = 2
    elif (num % 3) == 0:
        result = 3
    return result

def testif2b(num):
    result = None
    if (num % 2) == 0:
        result = 2
    if (num % 3) == 0:
        result = 3
    return result


