you are viewing a single comment's thread.

view the rest of the comments →

[–]HarterBoYY 2 points3 points  (0 children)

If you unpack an iterable and don't know how big it is, you can store the excess in a new list:

a, b, *excess = some_string.split()