def invert_dictionary(input):
    out = {}
for bike_number in list(input.keys()):
    product_name, list_of_parts = input[bike_number]
if product_name not in out:
    out[product_name] = []
out[product_name].append((bike_number, list_of_parts))
return out
new_dict = invert_dictionary(d)
print(new_dict['Racing Bike'])
Поиск элемента списка, когда список находится в словаре?