generated from mwc/lab_turtle
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:
17
drawing.py
17
drawing.py
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user