Nura's Poetry Slam

by Nura Hill

01 Jun 2017

Here is my code:

This, as usual, took me sometimes to put together. I spent a lot of time trying different things that were not working. This part (shown below) took the longest time:

for i in words:
  tina.write(i, align="center", font=("Arial",  30, "normal"))
  y = y - 40
  tina.goto(0, y)

I kept putting whats below, inside of the for loop above:

y = 160
tina.goto(0, y)

I finally realized after moving things around that the y variable outside of the for loop, made it work properly.

I also spent some time trying to figure out how to change the font, size and color of my text. I figured out how to change the font and size, then soon realized that the color changes when you change the color or the turtleā€¦ lightbulb moment! or more like, duuuuhhh moment. :)

I am a student at UNC. Hoping on soon becoming a official Information Science major! :) Find Nura Hill on Twitter, Github, and on the web.