In Python, size and length are distinct concepts.
Length tells you how many elements are in a container, while size reveals the memory footprint.
You’ll use len () for counting items and sys.getsizeof () for bytes used.