lst = list(range(1, 4))
id(lst)
lst = [1, 2, 3]
id(lst)
lst[:] = list(range(1, 4))
id(lst)
lst = range(1, 4)
lst
id(lst)
lst = [1, 2, 3]
id(lst)
lst[:] = range(1, 4)
id(lst)
lst
Назначение списка с помощью [:]