Created
December 10, 2021 07:07
-
-
Save pralabhsaxena05/c3e789140b3ab7bd108abbee5e9788e2 to your computer and use it in GitHub Desktop.
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
import sys | |
myvar = 15 | |
mylist = [1,2,3,4,5] | |
mystr = "Hello world!" | |
print(sys.getsizeof(myvar)) | |
print(sys.getsizeof(mylist)) | |
print(sys.getsizeof(mystr)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment