you're witnessing Python's 2 different string representations in action. It's rare that objects have 2, but strings are ones of those objects that do have 2 different string representations.
Try print(repr(line)) and you'll see the same recapping as when printing the whole list.
https://pym.dev/pythons-two-different-string-representations/?watch
As for how to deal with this... That depends on what you're trying to accomplish. Printing a list is pretty much never useful for end users (just for debugging purposes).
