Python Code Samples

Turtle Graphics

fillashapewithcolor.py

# set colors for pens
pen1.color("#101010", "#2c95b5")

# set pen width
pen1.width(5)

# Fill in shape with color
pen1.begin_fill()
pen1.rt(90)
pen1.circle(50, 180)
pen1.end_fill()

6 Programming Instructions