Write a program to Calculate memory is being used by an list in Python


Topic: Write a program to Calculate memory is being used by an list in Python

Solution

import sys
list1 = ['Scott', 'Eric', 'Kelly', 'Emma', 'Smith']
print("size of list = ",sys.getsizeof(list1))



List all Python Programs