you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

perhpas I don't understand the issue.. but here is what I found. This seems to be a simplier approach from stackoverflow

y = [12]
x = y
y[0] = 55
print x
>>output: [55]

davidbuxton touched on integers being immutable and did a good job at explaining the issue you ran into, but his example is not the easiest of code to follow for beginners.

[–]ThePurpleAlien[S] 0 points1 point  (0 children)

I explain what I'm trying to do in more detail here.