I took the suggestion from Dr. Proctor, and I tried to make rectangles colored with red and blue.

This commit is contained in:
Seoyeon Lee 2024-09-28 20:43:11 -04:00
parent c84103c084
commit d36e3eb7a7
1 changed files with 27 additions and 2 deletions

View File

@ -1,7 +1,32 @@
# drawing.py # drawing.py
# ---------- # ----------
# By ____(you)___________ # By Seoyeon___________
# #
# (Briefly describe what this program does.) # (basic practice prior to yin-yang shape.)
from turtle import * from turtle import *
color("black", "red")
begin_fill()
forward(40)
right(90)
forward(20)
right(90)
forward(40)
right(90)
forward(20)
end_fill()
penup()
backward(20)
right(180)
color("black","blue")
begin_fill()
forward(20)
left(90)
forward(40)
left(90)
forward(20)
end_fill()
input()