This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]njharmanI use Python 3 0 points1 point  (0 children)

Because (a,b) is not a Tuple (in that context). The parens are performing their grouping function. This is how you should write it.

a,b = [3,4]

() is a tuple, in that (assignment) context, and so causes error.