Add new file

This commit is contained in:
Franziska Naja 2022-12-21 19:10:41 +00:00
parent 38c9c80bb4
commit 57a4adb051

31
Mandala 1 Normal file
View File

@ -0,0 +1,31 @@
## Code mit spazierender Schildkröte
from turtle import *
shape("turtle")
speed(100)
for i in range(12):
for i in range(8):
forward(100)
left(45)
right(30)
for i in range(8):
forward(50)
left(45)
done()
## Code für das Erstellen von einer svg Datei
from svg_turtle import SvgTurtle
t = SvgTurtle(1000, 1000)
for i in range(12):
for i in range(8):
t.forward(100)
t.left(45)
t.right(30)
for i in range(8):
t.forward(50)
t.left(45)
t.save_as('PyTurtle1.svg')