This is an unusual request, and I would appreciate some guidance! :)
I have a python variable, for simplicity we can call it 'output'
When I print output I get the following:
b"word1\nword2\nword3\n"
I would love it if I could print
word1
word2
word3
word4
I have tried to split the variable, and feed it to a for loop with zero success. I am happy to write the output to a file in the OS and use bash to resolve the issue as well.
Thanks!