when I am trying to append a list, it's working weirdly. Suppose this is my code:
a = [1]
b = a
c = a
def func(a):
a.append([50])
Here is the output:
a
[1]
b
[1]
c
[1]
func(c)
c
[1,50] # good till now
But now when I try to print a or b, I should get just [1] right? But no, here's what I get:
b
[1,50]
Please explain...