How to find the size of a list in Python

preview_player
Показать описание


Code from video:
*****************
company = ['julia', 'erick', 'dillon']
len(company)
import sys

Connect with us!
*****************
Рекомендации по теме
Комментарии
Автор

Very informative video.. I had a doubt and it is a bit off topic. why sys.getsizeof(range(1000)) gives 48 bytes? whatever value is passed through range, I am always getting 48bytes. Thank you

uxlabkol
visit shbcf.ru