This is the dictionary
cars = {\'A\':{\'speed\':70, \'color\':2}, \'B\':{\'speed\':60, \'color\':3}}
Using this
for car,info in cars.items(): print(car) for key,value in info.items(): print(key, ":", value)