From a3b0f345f120960d0fc836062940558be5f683ce Mon Sep 17 00:00:00 2001 From: Chris Mekelburg Date: Thu, 29 Aug 2024 21:13:00 -0400 Subject: [PATCH] Original submission of lab, Hello message I had some excitement while doing this program because I had some familiarity with python before completing this assignment. I ran into a few issues with figuring out the direction the turtle was moving, but once I was able to think about it from the perspective of the turtle, it made coding the motions easier. I also frequently saved and updated my work to check it and was able to troubleshoot pretty easily. I have some basic familiarity with RobotC, whcih is similar to Python. --- drawing.py | 98 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 88 insertions(+), 10 deletions(-) diff --git a/drawing.py b/drawing.py index f3ee2e9..eb2010f 100644 --- a/drawing.py +++ b/drawing.py @@ -8,15 +8,93 @@ from turtle import ( color, ) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) -forward(100) -right(360 * 2 / 5) +penup() +back(300) +pendown() +color("green") +#H +right(90) +forward(100) +penup() +back(50) +pendown() +left(90) +forward(50) +left(90) +forward(50) +back(100) + +#E +penup() +right(90) +forward(50) +left(90) +pendown() +color("red") +forward(100) +right(90) +forward(50) +back(50) +right(90) +forward(50) +left(90) +forward(50) +back(50) +right(90) +forward(50) +left(90) +forward(50) + +#L +penup() +forward(50) +left(90) +forward(100) +left(180) +pendown() +color("blue") +forward(100) +left(90) +forward(75) + +#L +penup() +forward(50) +left(90) +forward(100) +left(180) +pendown() +color("orange") +forward(100) +left(90) +forward(75) + +#O +penup() +forward(50) +pendown() +color("purple") +forward(50) +left(90) +forward(100) +left(90) +forward(50) +left(90) +forward(100) + + + + +"""forward(100) +right(360 * 2 / 5) +forward(100) +right(360 * 2 / 5) +forward(100) +right(360 * 2 / 5) +forward(100) +right(360 * 2 / 5) +forward(100) +right(360 * 2 / 5) +""" input()