Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
from turtle import Turtle t = Turtle() t.begin_fill() t.pencolor("blue") t.color("blue") t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.right(90) t.forward(100) t.end_fill() #square using loops t.color("orange") t.begin_fill() for i in range(4): t.forward(100) t.right(90) t.end_fill() t.left(90) t.color("red") t.begin_fill() for i in range(4): t.forward(100) t.right(90) t.end_fill() t.left(90) t.color("green") t.begin_fill() for i in range(4): t.forward(100) t.right(90) t.end_fill()
turtle3.py
( around 34 lines python code )
Published By:
giraffe dude
Published on
2017-08-09T15:10:09Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here