4 ms·
a, *rest, b = range(10) print(rest) # prints [1, 2, 3, 4, 5, 6, 7, 8] In which context could this be useful?
by TekMol 9y ago
a, *rest, b = range(10)
print(rest) # prints [1, 2, 3, 4, 5, 6, 7, 8]
In which context could this be useful?
4 ms·