πŸ“Š Python
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

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