A

Admin • 832.27K Points
Coach

Q. What is the output of the following code?

Code:
print(type([]) is list)
  • (A) True
  • (B) False
  • (C) TypeError
  • (D) None
  • Correct Answer - Option(A)
  • Views: 21
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

The type of an empty list `[]` is indeed `list`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.