You have a nested structure, so you need to format the nested dictionary too:
for key, car in cars.items():
print(key)
for attribute, value in car.items():
print('{} : {}'.format(attribute, value))
This prints:
A
color : 2
speed : 70
B
color : 3
speed : 60