I encountered an error in my Python 3 code, and after intense debugging, I found out that Python doesn't appear to assign lists correctly:
$ python3
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct 5 2014, 20:42:22)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> test_1 = [12, 34]
>>> test_1
[12, 34]
>>> test_2 = [12, 34]
>>> test_2
[12, 34]
>>> test_2 = test_1
>>> test_2
[12, 34]
>>> test_1[0] = 'This changes in both arrays!'
>>> test_1
['This changes in both arrays!', 34]
>>> test_2
['This changes in both arrays!', 34]
>>>
Why is this happening? Is this intended? How do I stop it from happening???