Text Size
Text Size
Exit Full Screen
Python Mini
Show
Source Code
View Source Code in Full Screen
Open in New Tab
import turtle as tor x = [0, 49, 0, -100, -149] index = 0 tor.setposition(-100, -100) for bases in range(2): for hexagon in range(6): tor.forward(100) tor.left(60) tor.setposition(-50, -50) tor.setposition(-100, -100) tor.left(45) for y in [-100, -14, 73, 73, -14]: tor.forward(70) tor.setposition(x[index], y) index = index + 1 tor.forward(70)
ch_HexagonalPrism.py
( around 16 lines python code )
Published By:
EM5700
Published on
2019-12-09T13:41:28Z
Python Mini
- an
OYOclass
application,
own your own class today
.
Run
Result
×
Error message shows here