A

Admin • 833.24K Points
Coach

Q. What is the output of the following code?

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

Explanation by: Admin

A single element tuple requires a trailing comma.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.