def what_kind_of_number(x):
    if x % 2 == 0:
        print("it's even")
    else:
        print("it's odd")

def what_kind_of_number2(x):
    if type(x) != int:
        print("It's not even an integer!")
    elif x % 2 == 0:
        print("it's even")
    else:
        print("it's odd")


def monus(x, y):
    if y > x:
        return 0
    else:
        return x - y

def cable_pricer(num_cables):
    """
    Calculates the price for some number of cables num_cables.  Cable price
    per unit is:
        $3.00 if there are less than 10 cables
        $2.70 if there are between 10 and 50 cables
        $2.25 if there are between 50 and 100 cables
        $1.75 if there are between 100 and 500 cables
        $1.00 if there are 500 or more cables
    Factors in shipping costs as well.  Shipping $5.00 per box.  100 cables
    can fit into one box.
    """
    """
    This is unfinished!! We will finish it on Thursday (the 28th).
    """
    if num_cables < 10:
        return num_cables * 3.00 + 5.00
    elif num_cables < 50:
        return num_cables * 2.70 + 5.00
    elif num_cables < 100:
        return num_cables * 2.25 + 5.00
    elif num_cables < 500:
        if num_cables <= 100:
            boxes = 1
        elif num_cables <= 200:
            boxes = 2
        elif num_cables <= 300:
            boxes = 3
        elif num_cables <= 400:
            boxes = 4
        else:
            boxes = 5
        return num_cables * 1.75 + 5.00 * boxes
    else:
        if num_cables % 100 == 0:
            boxes = int(num_cables/100)
        else:
            boxes = 0 #???
            
        return  num_cables * 1.00 + 5.00 * boxes
