What is the expected output of the following Python code? print("\nDictionary…

PYQ DSSSB 2023

What is the expected output of the following Python code? print("\nDictionary Iteration") d = dict() d['lmn'] = 123 d['abc'] = 345 for i in d : print("%s %d" % (i, d[i]))

  1. A.

    Dictionary Iteration

    lmn 123

    abc 345

  2. B.

    Dictionary Iteration

    123 lmn

    abc 345

  3. C.

    Dictionary Iteration

    123 lmn

    345 abc

  4. D.

    Dictionary Iteration

    lmn 345

    abc 123

Attempted by 1549 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…