Home / Report Question

Q. What is the output of: `d = {'x': 100, 'y': 200}; d['z'] = d.get('z', 300)`?
  • A. {'x': 100, 'y': 200}
  • B. {'x': 100, 'y': 200, 'z': 300}
  • C. Error
  • D. {'z': 300}