Skip to content

Instantly share code, notes, and snippets.

@ishashankkumar
Created November 16, 2019 09:48
Show Gist options
  • Save ishashankkumar/160919f1387f5152b1e49983c2a70a76 to your computer and use it in GitHub Desktop.
Save ishashankkumar/160919f1387f5152b1e49983c2a70a76 to your computer and use it in GitHub Desktop.
t1, t2 = (), (1,2,3) #Tuples
>>> t1.__sizeof__(), t2.__sizeof__()
(24, 48)
>>> d1, d2, d3 = {}, {"a":1, "b":2}, {"c":3, "d":4, "e":5} #Dictionary
>>> d1.__sizeof__(), d2.__sizeof__(), d3.__sizeof__()
(248, 248, 248)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment