Thanks for the response!
After something like 6 hours, I found my mistake and I’m kicking myself lol. Apparently, I needed to create a separate variable to store the output of the .split() function. I was under the impression that the split() function would transform the variable that I’m using it on into a list.
I’m definitely used to languages that are more rigid than Python and would have expected something like that to throw an error.