QuestionQ229

VerifiedData Collections – Tuples, Dictionaries, Lists, and Strings

What is the expected output from the following code?

Question Image

Explanation

Dictionary iteration follows insertion order. The values at index 1 for keys '2' and '1' are printed in that order: 2 followed by 4.

Community Discussion

No comments yet. Be the first to start the discussion!