I read that slicing of list returns a new list with the contents of the original list. While running the following code why am I seeing the same id for all the list returned by slicing. Can someone explain what is happening here.
list_4 = [0, 1, 2, 3, 4, 5]
print(id(list_4))
print(id(list_4[0:1]))
print(id(list_4[0:2]))
print(id(list_4[-1:]))
Output:
2812068811464
2812100759880
2812100759880
2812100759880