O'Reilly logo
  • Longxiang Lyu thinks this is interesting:

8-14. Cars:

From

Cover of Python Crash Course

Note

def car_profile(manufacturer, model, **others):
profile = {}
profile['brand'] = manufacturer
profile['model'] = model
for key, value in others.items():
profile[key] = value
return profile