3 ms·
Doing that makes it not a tuple but just a string that's in brackets. Anybody that's done Python for more than a day will instantly know that you'd do ("foo",)
by antihero 14y ago
Doing that makes it not a tuple but just a string that's in brackets.
Anybody that's done Python for more than a day will instantly know that you'd do ("foo",), and to be honest you'd more likely write it as
(
"foo",
"bar",
"baz",
)
So removing the last two elements will not break the tuple.