A

Admin • 833.24K Points
Coach

Q. What is the output of this code?

Code:
print(type({}))
  • (A) <class 'set'>
  • (B) <class 'dict'>
  • (C) <class 'list'>
  • (D) <class 'tuple'>
  • Correct Answer - Option(B)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

{} creates an empty dictionary, not a set.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.