πŸ“Š Python
Q. What is the output of the following code?
Code:
print(type({}))
  • (A) <class 'dict'>
  • (B) <class 'set'>
  • (C) <class 'list'>
  • (D) <class 'tuple'>
πŸ’¬ Discuss
βœ… Correct Answer: (A) <class 'dict'>

Explanation: Empty braces `{}` create an empty dictionary, not a set.

Explanation by: Mr. Dubey
Empty braces `{}` create an empty dictionary, not a set.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
58
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
85%
Success Rate