def buildCars country manufacture model car cars country cars country

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
def buildCars(country, manufacture, model, **car):
cars = {country: {}}
cars[country]['manufacture'] = manufacture
cars[country]['model'] = model
for key, value in car.items():
cars[country][key] = value
return cars
bmw = buildCars('germany', "bmw", "X5", color='black', weight='2 tones')
fake = buildCars('fake', "fake", "fake")
mercedes = buildCars('germany', "mercedes", "sth", color='white', weight='3 tones', value='$100000')
print(bmw)
print(fake)
print(mercedes)