highlighted_poems_stripped =
for poem in highlighted_poems_list:
poem.strip()
highlighted_poems_stripped.append(poem)
I don’t understand what I’m doing wrong in this particular section that causes an error? Please help!
Thanks
highlighted_poems_stripped =
for poem in highlighted_poems_list:
poem.strip()
highlighted_poems_stripped.append(poem)
I don’t understand what I’m doing wrong in this particular section that causes an error? Please help!
Thanks
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.