Experimented with Turtle and made a house

Excited to experiment and change the code to see the result and/if an error pops up.
This commit is contained in:
joen
2025-08-31 22:14:08 +08:00
parent baaa52d668
commit 9d65b147ca

View File

@@ -6,17 +6,22 @@ from turtle import (
penup,
pendown,
color,
pensize
)
pensize(5)
forward(100)
right(360 * 2 / 5)
right(90)
forward(100)
right(360 * 2 / 5)
right(90)
forward(100)
right(360 * 2 / 5)
right(90)
forward(100)
right(360 * 2 / 5)
forward(100)
right(360 * 2 / 5)
color('red')
pensize(20)
right(45)
forward(70)
right(90)
forward(70)
input()