Computer Science · Python Dictionaries
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': 5, 'B': 5, 'C': 9, 'D': 10}✓
- 2{'A': 5, 'B': 7, 'C': 9, 'D': 10}
- 3{'A': 5, 'C': 9, 'D': 10}
- 4{'B': 5, 'D': 10}
Correct answer
{'A': 5, 'B': 5, 'C': 9, 'D': 10}
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Python Dictionaries?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Python Dictionaries