resistor-color-duo/resistor_color_duo.py
def value(colors):
    '''
    This returns the value of the first two bands of a three band resistor.

    Everything after the first two bands is ignored.

    Why? Because the tests are not testing for anything else and I do not like to overthink this exercise.
    '''

    return int("".join([str(_colors.index(v)) for v in colors[:2]]))

    This returns the value of the first two bands of a three band resistor.

    Everything after the first two bands is ignored.

    Why? Because the tests are not testing for anything else and I do not like to overthink this exercise.
    
This returns the value of the first two bands of a three band resistor.
Everything after the first two bands is ignored.


This returns the value of the first two bands of a three band resistor . Everything after the first two bands is ignored .
def value(colors):
    return int("".join([str(_colors.index(v)) for v in colors[:2]]))
def value ( colors ) : return int ( "" . join ( [ str ( _colors . index ( v ) ) for v in colors [ : 2 ] ] ) )
This returns the value of the first two bands of a three band resistor.
This returns the value of the first two bands of a three band resistor .
'''
    This returns the value of the first two bands of a three band resistor.

    Everything after the first two bands is ignored.

    Why? Because the tests are not testing for anything else and I do not like to overthink this exercise.
    '''
colors