Files
lab_turtle/drawing.py
Diana Panarello 488d6e9cc9 I experimented with the turtle command using the pensize, color, circle, set position, and text.
This actually was theraputic for me. I enjoyed the trial and error aspect and experimenting with the program to get my shapes exactly where I wanted them to be. I wanted to experiment with adding text to the program, and it was interesting to see how the text was coded.
2025-09-02 21:26:50 -04:00

47 lines
591 B
Python

from turtle import (
forward,
back,
left,
right,
penup,
pendown,
color,
write,
setposition,
circle,
goto,
fillcolor,
pensize
)
pensize(10)
color('blue')
circle(50)
penup()
setposition(110,0)
pendown()
color('black')
circle(50)
penup()
setposition(220,0)
pendown()
color('red')
circle(50)
penup()
setposition(55,-60)
pendown()
color('yellow')
circle(50)
penup()
setposition(165,-60)
pendown()
color('green')
circle(50)
penup()
setposition(25,-140)
color('maroon')
style = ('Times New Roman', 75, 'bold')
write('USA!', font=style)
input()