def getcolor():
    colors = {
        "red": 1,
        "green": 2,
        "yellow": 3,
        "blue": 4,
        "magenta": 5,
        "cyan": 6,
        "white": 7,
        "orange": 9,
        "random": random.randint(1, 255)
    }

    if color is not None and color.lower() in colors.keys():
        curses.init_pair(1, 0, -1)
        curses.init_pair(2, colors[color], -1)
        curses.init_pair(3, 0, colors[color])
    else:
        pass
Filter items in dictionary by item
dataset/ETHPy150Open shaggytwodope/clockr/clockr/clockr.py/getcolor--crossover with--dataset/ETHPy150Open pytoolz/toolz/toolz/dicttoolz.py/itemfilter