Which is the correct syntax for creating a tuple containing only one element?

Options

  • A. (5)
  • B. [5]
  • C. (5,)
  • D. More than one of the above
  • E. None of the above

Correct Answer (Detailed Explanation is Below)

C. (5,)

Detailed Explanation

Explanation: A comma is necessary to create a single-element tuple. (5) is an integer in parentheses.