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)
- A.
{'A':5, 'B':5, 'C':9, 'D':10}
- B.
{'A':5, 'B':5, 'C':9, 'B':5, 'D':10}
- C.
{'A':5, 'C':9, 'D':10}
- D.
{'B':7, 'D':10, 'A':5, 'C':9}
Attempted by 1618 students.
Sign up free to check your answer
Sign up freeLoading lesson…

