-
-
Save codecademydev/a5b8ba943bc36b922028e02d3fd776de to your computer and use it in GitHub Desktop.
Codecademy export
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
highlighted_poems = "Afterimages:Audre Lorde:1997, The Shadow:William Carlos Williams:1915, Ecstasy:Gabriela Mistral:1925, Georgia Dusk:Jean Toomer:1923, Parting Before Daybreak:An Qi:2014, The Untold Want:Walt Whitman:1871, Mr. Grumpledump's Song:Shel Silverstein:2004, Angel Sound Mexico City:Carmen Boullosa:2013, In Love:Kamala Suraiyya:1965, Dream Variations:Langston Hughes:1994, Dreamwood:Adrienne Rich:1987" | |
highlighted_poems_list = highlighted_poems.split(",") | |
print(highlighted_poems_list) | |
highlighted_poems_stripped = [] | |
for poem in highlighted_poems_list: | |
poem.strip() | |
highlighted_poems_stripped.append(poem) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment