Tom Ritchford
1 min readMay 27, 2020

--

Your usual good work.

You missed one, though - list surgery, or "assigning to a slice", an example being a[2:2] = range(3) to insert three elements after position 2, or a[2:5] = 'x' to replace the three list elements at positions 2, 3 and 4 with the single element 'x'.

Keep up the good work!

--

--

Responses (1)