A

Admin • 833K Points
Coach

Q. What is the output of `dict(a=1, b=2).items()`?

  • (A) ['a', 'b']
  • (B) {'a': 1, 'b': 2}
  • (C) dict_items([('a', 1), ('b', 2)])
  • (D) [('a', 1), ('b', 2)]

Explanation by: Admin

`items()` returns a view object, typically shown as `dict_items([...])`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.