ordered_colors = [
    "black", "brown", "red", "orange", 
    "yellow", "green", "blue", "violet", 
    "grey", "white"
    ]
def code(color):
    return ordered_colors.index(color)

def value(colors):
    return code(colors[0])*10 + code(colors[1])
291952be94eb0fc828a07a68fc0fd164813c37c3
<mask token>

<mask token>


def value(colors):
    return code(colors[0]) * 10 + code(colors[1])

<mask token>


def code(color):
    return ordered_colors.index(color)


def value(colors):
    return code(colors[0]) * 10 + code(colors[1])

ordered_colors = ['black', 'brown', 'red', 'orange', 'yellow', 'green',
    'blue', 'violet', 'grey', 'white']


def code(color):
    return ordered_colors.index(color)


def value(colors):
    return code(colors[0]) * 10 + code(colors[1])

ordered_colors = [
    "black", "brown", "red", "orange", 
    "yellow", "green", "blue", "violet", 
    "grey", "white"
    ]
def code(color):
    return ordered_colors.index(color)

def value(colors):
    return code(colors[0])*10 + code(colors[1])