Skip to content

Instantly share code, notes, and snippets.

@leangaurav
Created May 11, 2019 14:09
Show Gist options
  • Save leangaurav/237df91c7a434d922d2cb6db2bf15cb9 to your computer and use it in GitHub Desktop.
Save leangaurav/237df91c7a434d922d2cb6db2bf15cb9 to your computer and use it in GitHub Desktop.
x = [1,2,3]
y = x
x[0] = 10
print(x, y)

Output
[10, 2, 3] [10, 2, 3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment