Skip to content

Instantly share code, notes, and snippets.

@joeyfigaro
Last active November 17, 2022 15:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joeyfigaro/2d9bff57c9cc15294980111c8d989e8c to your computer and use it in GitHub Desktop.
Save joeyfigaro/2d9bff57c9cc15294980111c8d989e8c to your computer and use it in GitHub Desktop.
Kids Python Learning
from turtle import*
pensize(15)
penup()
goto(50,70)
left(90)
pendown()
def draw(a,b,c,x,y,l):
color(l)
circle(a,b,c)
right(180)
penup()
goto(x,y)
pendown()
draw(25,180,180,64,70,"purple")
draw(39,180,180,78,70,"violet")
draw(53,180,180,92,70,"blue")
draw(67,180,180,106,70,"green")
draw(81,180,180,120,70,"yellow")
draw(95,180,180,134,70,"orange")
draw(109,180,180,0,0,"red")
from turtle import*
for i in range(4):
circle(100,360,10)
left(90)
colormode(255)
for i in range(5):
fillcolor(220,20,60)
begin_fill()
circle(100,360,10)
left(90)
end_fill()
for i in range(4):
circle(50,360,10)
left(90)
colormode(255)
for i in range(5):
fillcolor(255,192,203)
begin_fill()
circle(50,360,10)
left(90)
end_fill()
for i in range(4):
circle(25,360,10)
left(90)
colormode(255)
for i in range(5):
fillcolor(255,240,245)
begin_fill()
circle(25,360,10)
left(90)
end_fill()
for i in range(4):
circle(9,360,10)
left(90)
colormode(255)
for i in range(5):
fillcolor(255,255,0)
begin_fill()
circle(9,360,10)
left(90)
end_fill()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment