Could anyone explain why single element tuple is interpreted as that element in Python?
And
Why don\'t they just print the tuple (1,) as (
(1,)
(
Because only (1, ) in your examples is tuple. The rest are expressions.
(1, )
In [4]: type(1,) Out[4]: int In [5]: type((1,)) Out[5]: tuple In [6]: type((1)) Out[6]: int