James' Poetry Slam Turtle Exercise

by James Moore

10 Feb 2016

Poetry Slam Exercise:

Reflection:

This exercise was pretty straightforward. The only thing that annoyed me was how to make Tina write multiple lines of poetry in a poetic way, with each line of poetry actually being on a seperate line. At first I tried this:

count = 0 for line in poem: tina.goto(0, count - 10) tina.write(line) tina.penup() count = count + 1

Where “poem” is my list of poetic lines from the user, but no matter what I tried Tina would just end up writing the lines of poetry over each other. So I ended up just doing a simple tina.write(poem). Although it prints it all on one line at least it’s readible.I’ve had this problem before (getting Tina to write multiple lines of text on different lines) so I’d be interested in techniques on how to do this.

Hi my name is James. I'm a 1st year Masters student. Find James Moore on Twitter, Github, and on the web.