Skip to content

Instantly share code, notes, and snippets.

@Ventsislav-Yordanov
Created February 3, 2019 15:27
Show Gist options
  • Save Ventsislav-Yordanov/9b732ca218b1a76a1eb2d165587a93b2 to your computer and use it in GitHub Desktop.
Save Ventsislav-Yordanov/9b732ca218b1a76a1eb2d165587a93b2 to your computer and use it in GitHub Desktop.
list_values = [1, 2, 3]
set_values = (1, 2, 3)
print(id(list_values))
print(id(set_values))
print()
list_values += [4, 5, 6]
set_values += (4, 5, 6)
print(id(list_values))
print(id(set_values))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment