How do I do the following in python?
a = ['foo']
b = a
b.append('bar')
print(a) # ['foo']
print(b) # ['foo', 'bar']
I essentially need the behavior of "new" in other keywords
How do I do the following in python?
a = ['foo']
b = a
b.append('bar')
print(a) # ['foo']
print(b) # ['foo', 'bar']
I essentially need the behavior of "new" in other keywords