I have a small piece of code and a very big doubt.
s=['a','+','b']
s1=s
print s1
del s1[1]
print s1
print s
The output is
value of s1 ['a', '+', 'b']
value of s1 ['a', 'b']
value of s ['a', 'b']
Why is the value of variable 's' changing when I am modifying s1 alone? How can I fix this?
Thank you in advance :)