Listen Sie den Sublisten ändern

a = [1, 2, 3, 4, 5]
a[2:4] = [99, 100]
print(a)
# [1, 2, 99, 100, 5]
Sore Sloth