Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created August 30, 2021 22:33
Embed
What would you like to do?
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