Is it possible to have a tuple contain only one tuple without the comma?

Question:

Can I have a tuple that contains just one tuple (without any additional commas) like the following:

((0,1))

I know that if I do the following, this works (kind of):

final_tuple = ()
input_tuple = (0,1)
final_tuple = ((input_tuple,))

print(str(final_tuple))

Output: ((0,1),)

Asked By: user352258

||

Answers:

((0, 1),) may be what you want.

Answered By: LEGION GREEN
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.