Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created August 30, 2021 22:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/642a11b4649ec0775af8eac3eea9fa38 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/642a11b4649ec0775af8eac3eea9fa38 to your computer and use it in GitHub Desktop.
copied_list.append(77)
print(copied_list)
#Output:[1, 2, 3, 99, 77]
print(original_list)
#Output:[1, 2, 3, 99, 77]
print(id(original_list))
#Output:26751688
print(id(copied_list))
#Output:26751688
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment