Don't understand the error in this code for String Method Review

highlighted_poems_stripped =

for poem in highlighted_poems_list:

I don’t understand what I’m doing wrong in this particular section that causes an error? Please help!


The outcome of that needs to be assigned to a variable; or, alternatively, used as an argument for append()…

... .append(poem.strip())

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.