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.shape("turtle") t.begin_fill() t.color("cyan") for i in range(3): t.forward(100) t.left(120) t.end_fill() t.right(180) t.begin_fill() t.color("green") for i in range(3): t.forward(100) t.right(120) t.end_fill() t.right(120) t.color("cyan") t.forward(100) t.left(60) t.begin_fill() t.color("red") for i in range(3): t.forward(100) t.left(120) t.end_fill()
Pyramid.py
( around 26 lines python code )
Published By:
ry6100
Published on
2017-08-02T04:01:20Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here