How do I remove a range (subsection) of a list in Python? April 7, 2024 by Tarik all = all[:max(current - 2, 0)] + all[current:] or del all[max(current - 2, 0):current]