A

Admin • 833K Points
Coach

Q. What is the result of {'a':1, 'b':2}.values()?

  • (A) ['a', 'b']
  • (B) [1, 2]
  • (C) dict_values([1, 2])
  • (D) {1, 2}
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

values() returns a dict_values view object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.