Question on lists
Ok.. I have a list L L=['a', 'b', 'c'] Now we know that slicing a list returns a new list (correct me if I'm wrong) so L[0:3] gives a,b Now since list returns a new list/object how does replacement work?? Say L[0:2]=['d', 'e'] print (L) gives a,d,e... how's that possible??..I know list is mutable but slicing always returns a new list... then how does this work??