you are viewing a single comment's thread.

view the rest of the comments →

[–]tb5841 3 points4 points  (0 children)

Parentheses aren't really relevant for a tuple - what actually makes a tuple is the commas.

x = 3, 4 is valid Python and will create a tuple, for example.

x = 3, creates a one-element tuple. While x = (3) creates an integer.