Thanks for all the response!
The below looks interesting, could someone explain the code?
The below looks interesting, could someone explain the code?
[python] def car(make, model, style, year, color): return {'make':make, 'model':model, 'style':style, 'year':year, 'color':color} cars = {'fun car':car('Chevrolet', 'Corvette', 'coupe', 2020, 'red'), 'work car':car('Ford', 'F150', 'truck', 1990, 'rust'), 'dad van':car('Chrysler', 'Pacifica', 'minivan', 2015, 'white')} for label, car in cars.items(): print(label, '\n', car, '\n')[/python]