# Extended slice assignment size mismatch: ValueError: attempt to assign sequence of size 1 to extended slice of size 3 (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/extended-slice-assignment-size-mismatch-valueerror-attempt-to-assign-sequence-of-size-1-to-extended-919c191b09f0
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, semantics, slicing

l[::2]=[0] on a 5-item list. l[::2]=[0,0,0] works ([0,2,0,4,0]); l[1:3]=[9] shrinks to [1,9,4,5]; l[5:5]=[9] on a 3-item list appends.
