A

Admin • 833.24K Points
Coach

Q. What will be the output of the following code?

Code:
print(type([1,2,3]))
  • (A) <class 'list'>
  • (B) <class 'tuple'>
  • (C) <class 'set'>
  • (D) <class 'dict'>
  • Correct Answer - Option(A)
  • Views: 31
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

Square brackets [] create a list in Python.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.