cars = {'ford': 10, 'opel': 5 } def get_val(key): return cars[key] ford = get_val('ford') print(ford)