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

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