0

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

babyDev
  • 415
  • 5
  • 8

0 Answers0