@hbv/

elsorajz

Python (with Turtle)

Ne feledkezzünk meg az import turtle utasításról!

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7218198787021981","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHR1cnRsZQp0dXJ0bGUucGVuc2l6ZSg1KQp0dXJ0bGUuY29sb3IoJ3JlZCcpCnR1cnRsZS5mb3J3YXJkKDEwMCkKdHVydGxlLnJpZ2h0KDEyMCkKdHVydGxlLnBlbnNpemUoMTApCnR1cnRsZS5jb2xvcignYmx1ZScpCnR1cnRsZS5mb3J3YXJkKDEwMCkKdHVydGxlLnJpZ2h0KDEyMCkKdHVydGxlLnBlbnNpemUoMTUpCnR1cnRsZS5jb2xvcigneWVsbG93JykKdHVydGxlLmZvcndhcmQoMTAwKQp0dXJ0bGUucmlnaHQoMTIwKQoK"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import turtle
turtle.pensize(5)
turtle.color('red')
turtle.forward(100)
turtle.right(120)
turtle.pensize(10)
turtle.color('blue')
turtle.forward(100)
turtle.right(120)
turtle.pensize(15)
turtle.color('yellow')
turtle.forward(100)
turtle.right(120)

result
console