top of page

04.06.2018: One Lesson of Python

Today's soundtrack is Rhye: Blood.

I'm now on the next chapter of Coding Projects in Python, "Mutant Rainbow."

I started by making a new file in IDLE, then imported the modules that I needed - random and turtle. Then I assigned lengths to the lines that I wanted the turtle to draw by creating a function, and did the same to define widths. After that, I commanded the program to retrieve the inputs given by the user inside of those functions. I set boundaries for the turtle so that it wouldn't go off-screen. Finally, I commanded the turtle to start drawing.


bottom of page