Get Memory Size of an Object from sys import getsizeofmsg = "Hello my friends!"size = getsizeof(msg)print(size)