28.09.
This commit is contained in:
+8
-9
@@ -1,14 +1,14 @@
|
||||
import turtle
|
||||
|
||||
#def zeichnen(n):
|
||||
# if n > 0:
|
||||
# turtle.forward(300)
|
||||
# turtle.left(75)
|
||||
# turtle.forward(150)
|
||||
# turtle.backward(150)
|
||||
# zeichnen(n - 1)
|
||||
def zeichnen(n):
|
||||
if n > 0:
|
||||
turtle.forward(300)
|
||||
turtle.left(75)
|
||||
turtle.forward(150)
|
||||
turtle.backward(150)
|
||||
zeichnen(n - 1)
|
||||
|
||||
#zeichnen(2)
|
||||
zeichnen(2)
|
||||
|
||||
#turtle.mainloop()
|
||||
|
||||
@@ -32,7 +32,6 @@ import turtle
|
||||
|
||||
#turtle.mainloop()
|
||||
|
||||
|
||||
def baum(laenge):
|
||||
if laenge < 20:
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user