Aug-29-2018, 05:30 AM
List of parts and quantity can be obtained quite easily. I don't know whether is in correct format or not:
def parts_list(bike_id): for row in products: if row['BikeID'] == bike_id: return row['BikeParts']Which will produce:
>>> parts_list('bike301') ['WH339:2', 'TR302:2', 'TU377:2', 'FR301:1', 'FB301:1', 'BB301:1', 'GS301:1']
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.