A

Admin • 833K Points
Coach

Q. What will be the output of this code?

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

Explanation by: Admin

Parentheses with comma-separated values create a tuple.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.