What will be the output of the following Python code ? D1={'A':5, 'B':7,…

PYQ KVS TGT/PGT 2023

What will be the output of the following Python code ? D1={'A':5, 'B':7, 'C':9} D2={'B':5, 'D':10} D1.update(D2) print(D1)

  1. A.

    {'A':5, 'B':5, 'C':9, 'D':10}

  2. B.

    {'A':5, 'B':5, 'C':9, 'B':5, 'D':10}

  3. C.

    {'A':5, 'C':9, 'D':10}

  4. D.

    {'B':7, 'D':10, 'A':5, 'C':9}

Attempted by 1618 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…