CONVERSION_DICT = {'kelvin': lambda x: x - 273.15, 'romer': lambda x: (x - 
    7.5) * 40 / 21}

def convert_to_celsius_lambda_once(temp, source):
    return CONVERSION_DICT[source](temp)
Recommended usage of Python dictionary, functions as values