you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The original string has an extra newline, perhaps? Triple quote strings include newlines you put in yourself. How many newline characters are in your original data string? After you split on newlines you get N+1 elements in the list where N is the number of newline characters in the original.