"""
    Resistor Color
"""
COLOR_DCT = {
    "black": 0,
    "brown": 1,
    "red": 2,
    "orange": 3,
    "yellow": 4,
    "green": 5,
    "blue": 6,
    "violet": 7,
    "grey": 8,
    "white": 9,
}

def color_code(color):
    """
        Return the color code in number
    """
    return COLOR_DCT[color]


def colors():
    """
        Return all colors in number order
    """
    return [
        "black",
        "brown",
        "red",
        "orange",
        "yellow",
        "green",
        "blue",
        "violet",
        "grey",
        "white",
    ]

"""
    Resistor Color
"""
COLOR_DCT = {
    "black": 0,
    "brown": 1,
    "red": 2,
    "orange": 3,
    "yellow": 4,
    "green": 5,
    "blue": 6,
    "violet": 7,
    "grey": 8,
    "white": 9,
}

def color_code(color):
    """
        Return the color code in number
    """
    return COLOR_DCT[color]


def colors():
    """
        Return all colors in number order
    """
    return [
        "black",
        "brown",
        "red",
        "orange",
        "yellow",
        "green",
        "blue",
        "violet",
        "grey",
        "white",
    ]

Resistor Color Return the color code in number Return all colors in number order