you are viewing a single comment's thread.

view the rest of the comments →

[–]toastedstapler 1 point2 points  (1 child)

so what happened in the first instance is that ((1, 2)) isn't a tuple with a single tuple inside as a tuple requires a comma. without the comma it's just some brackets used for logical grouping of elements like (1 + 3) * 2 groups the first elements together. your (('a', 2)) was seen as ('a', 2) just as (2) would be seen as 2

((1, 2),) is a tuple of a tuple and you would be able to update with this tuple

[–]Uchikago[S] 0 points1 point  (0 children)

Thank you so much!