From 8eebcfd273f1209c090015453cb2574b9d71c99a Mon Sep 17 00:00:00 2001 From: tsmith37 Date: Sat, 30 Aug 2025 13:20:21 -0400 Subject: [PATCH] Made a colorful house Im excited that I figured out how to move the turtle in any direction by using angles and degrees to rotate the turtle. --- drawing.py | 74 +++++++++++++++++++++++++++++++++++++++++++++-------- poetry.lock | 7 +++++ 2 files changed, 71 insertions(+), 10 deletions(-) create mode 100644 poetry.lock diff --git a/drawing.py b/drawing.py index f3ee2e9..35604aa 100644 --- a/drawing.py +++ b/drawing.py @@ -8,15 +8,69 @@ 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) + +left (90) +forward(200) +right (90) +forward (200) +right (90) +forward (200) +right (90) +forward (200) +back (80) +pendown +right (90) +color ('green') +forward (70) +right (90) +forward (40) +right (90) +forward (70) +left (90) +forward (20) +left (90) +penup () +forward (120) +pendown () +color ('blue') +forward (40) +right (90) +forward (40) +right (90) +forward (40) +right (90) +forward (40) +penup () +forward (80) +pendown () +forward (40) +right (90) +forward (40) +right (90) +forward (40) +right (90) +forward (40) +right (90) +penup () +forward (60) +right (90) +forward (80) +pendown () +color ('orange') +right (45) +forward (142) +right (90) +forward (142) +penup () +back (80) +left (130) +pendown () +color ('red') +forward (50) +right (90) +forward (20) +right (90) +forward (70) + input() diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..7e72dc6 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,7 @@ +# This file is automatically @generated by Poetry 2.1.4 and should not be changed by hand. +package = [] + +[metadata] +lock-version = "2.1" +python-versions = ">=3.10,<4.0" +content-hash = "7b8fc01b274bd807fb00372bbc8e138330f15ae7978ed61e180f3b17ec076725"