Created
August 11, 2020 12:46
-
-
Save jlggross/bc69658f85c0e6c320cd1488e2b7803e to your computer and use it in GitHub Desktop.
Print the id of and object
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
X = 10 | |
print(id(x)) | |
# 140002029632144 | |
x = 10000 | |
print(id(x)) | |
# 140001888536400 | |
x = [] | |
print(id(x)) | |
# 140001888523016 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment