generated from mwc/lab_turtle
I have not used python in a while, so getting a reintroduction was fun. At first, I got the angles wrong but after running it, I was able to adjust accordingly to make what i pictured. I then decided to add color to make it a bit more fun. I enjoyed getting to try out a differnt shape and playing around with colors!
35 lines
378 B
Python
35 lines
378 B
Python
from turtle import (
|
|
forward,
|
|
back,
|
|
left,
|
|
right,
|
|
penup,
|
|
pendown,
|
|
color,
|
|
)
|
|
|
|
color("red")
|
|
forward(200)
|
|
right(90)
|
|
color("orange")
|
|
forward(200)
|
|
right(90)
|
|
color("yellow")
|
|
forward(200)
|
|
right(90)
|
|
color("green")
|
|
forward(200)
|
|
right(135)
|
|
color("blue")
|
|
forward(282.8)
|
|
right(135)
|
|
color("yellow")
|
|
forward(200)
|
|
right(135)
|
|
color("purple")
|
|
forward(282.8)
|
|
|
|
input()
|
|
|
|
|