So stdin returns a string of text into a list, and multiple lines of text are all list elements. How do you split them all into single words?
mylist = [\'thi
You could just do:
words = str(list).split()
So you turn the list into a string then split it by a space bar. Then you can remove the /n's by doing:
words.replace("/n", "")
Or if you want to do it in one line:
words = str(str(str(list).split()).replace("/n", "")).split()
Just saying this may not work in python 2