Since Tina knows how to write words on the screen, you can teach her to write a poem. This example provides you with a `line()` function to write lines of poetry and a `by()` function to list yourself as the author! ```python.run:height=500 import turtle tina = turtle.Turtle() tina.shape('turtle') tina.penup() def line(words, horiz_pos = -50): x,y = tina.pos() tina.goto(max(horiz_pos, -190), y) tina.write(words) x,y = tina.pos() tina.goto(x, y - 25) def by(author): x,y = tina.pos() tina.goto(x + 70, max( -190, y -30)) tina.write(author) x,y = tina.pos() tina.goto(0, y) tina.goto(-50, 190) line("Snow in my shoe") line("Abandoned") line("Sparrow's nest") by("Jack Kerouac") ``` Keep working at it until the poem looks the way you want it to! Then click the Share Button (![Screen Shot 2014-09-28 at 3.25.55 PM.jpg](https://fed626206d48e2a26ace-9dde08b70a28c29bead112b2a9692213.ssl.cf5.rackcdn.com/eff1b884bcd22725c940b99a1ccc89cfbd95dacfj "Screen Shot 2014-09-28 at 3.25.55 PM.jpg")) to get a link or the Email button (![Screen Shot 2014-09-28 at 3.26.11 PM.jpg](https://fed626206d48e2a26ace-9dde08b70a28c29bead112b2a9692213.ssl.cf5.rackcdn.com/a2bcf4c5548e3ca3a4b3d43ec27a5f7cb17555e7j "Screen Shot 2014-09-28 at 3.26.11 PM.jpg")) to send it to your friends, teacher, or parents! Hints: * You can start by replacing the `line()` calls in the existing program. * If your poem needs more than three lines, add new `line()` function calls with the new lines in them. * If you want to leave a blank line, use an empty string: `" "` * If you need your lines to begin further to the left because they're too long, add a comma (`,`) and a negative number down to -200: ```python line("This line will be far to the left", -190) ``` ## Famous poems Can't think of a poem? Try putting in some lines from these famous poems and poem fragments. You can **copy** and **paste** the lines instead of re-typing them.: #### Emily Dickinson "Hope" is the thing with feathers— That perches in the soul— And sings the tune without the words— And never stops—at all— And sweetest—in the Gale—is heard— And sore must be the storm— That could abash the little Bird That kept so many warm— I've heard it in the chillest land— And on the strangest Sea— Yet, never, in Extremity, It asked a crumb—of Me. #### Frederick Douglass When it is finally ours, this freedom, this liberty, this beautiful and terrible thing, needful to man as air, usable as earth; when it belongs at last to all, when it is truly instinct, brain matter, diastole, systole, reflex action; when it is finally won; when it is more than the gaudy mumbo jumbo of politicians: this man, this Douglass, this former slave, this Negro beaten to his knees, exiled, visioning a world where none is lonely, none hunted, alien, this man, superb in love and logic, this man shall be remembered. Oh, not with statues’ rhetoric, not with legends and poems and wreaths of bronze alone, but with the lives grown out of his life, the lives fleshing his dream of the beautiful, needful thing. #### e.e. cummings it may not always be so; and i say that if your lips,which i have loved,should touch another’s,and your dear strong fingers clutch his heart,as mine in time not far away; if on another’s face your sweet hair lay in such silence as i know,or such great writhing words as,uttering overmuch, stand helplessly before the spirit at bay; if this should be,i say if this should be— you of my heart,send me a little word; that i may go unto him,and take his hands, saying,Accept all happiness from me. Then shall i turn my face,and hear one bird sing terribly afar in the lost lands #### Federico Garcia Lorca Cirio, candil, farol y luciérnaga. La constelación de la saeta. Ventanitas de oro tiemblan, y en la aurora se mecen cruces superpuestas. Cirio, candil, farol y luciérnaga.

Congratulations!

Enter your Name and Save your certificate:

Your certificate has been created!

Share this link with your friends, family or teacher:

Certificate of Completion

Presented to
for successfully completing an Hour of Python!
On behalf of the trinket.io team, congratulations and thanks!
Visit hourofpython.com to keep learning.
×