“Can only join an iterable” python error
问题 I've already looked at this post about iterable python errors: "Can only iterable" Python error But that was about the error "cannot assign an iterable". My question is why is python telling me: "list.py", line 6, in <module> reversedlist = ' '.join(toberlist1) TypeError: can only join an iterable I don't know what I am doing wrong! I was following this thread: Reverse word order of a string with no str.split() allowed and specifically this answer: >>> s = 'This is a string to try' >>> r = s