> masteringswe_
conceptual

Does dict maintain insertion order?

Do key-value pairs in dictionaries maintain their inserted order? Will the following code print the pairs in the same order they were inserted?

pythond = {}
d["name"] = "Jason"
d["age"] = 21
d["hair length"] = "long"

for key, value in d.items():
		print(str(key) + ":" + str(value))