A

Admin • 833K Points
Coach

Q. What is the output of the following code?

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

Explanation by: Admin

Empty braces `{}` create 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.