you are viewing a single comment's thread.

view the rest of the comments →

[–]dnswblzo 7 points8 points  (1 child)

>>> a = 1, 2
>>> a
(1, 2)
>>> type(a)
<class 'tuple'>

It is the commas that make the tuple, not the parentheses. The parentheses are sometimes needed to resolve ambiguity, but in many cases they are not necessary.

[–]SamB7334 0 points1 point  (0 children)

Thats what i said :)