Skip to content

Instantly share code, notes, and snippets.

@eriky
Created January 4, 2020 11:05
Show Gist options
  • Save eriky/e677e62eb27b4b955b2da654e358c75a to your computer and use it in GitHub Desktop.
Save eriky/e677e62eb27b4b955b2da654e358c75a to your computer and use it in GitHub Desktop.
import sys
myreallist = [x for x in range(0, 10000)]
print(sys.getsizeof(myreallist))
# 87632
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment