Q. What is the output of the following code?

Code:
print(type([]) is list)
  • (A) True
  • (B) False
  • (C) TypeError
  • (D) None
πŸ’¬ Discuss
βœ… Correct Answer: (A) True
Explanation: The type of an empty list `[]` is indeed `list`.
Explanation by: Mr. Dubey
The type of an empty list `[]` is indeed `list`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
126
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
87%
Success Rate