May 11, 2021
This is not right, not in the slightest.
first = 'a value'
second = first
assert first is second # It isn't copied!! It's the same object.first = [1, 2, 3]
second = first
first[0] = 'surprise!'
assert second == ['surprise!', 2, 3] # It isn't copied!
I’ve enjoyed the article so far, though!