PMG2527 4/Spielwiese Py 2
Aus ProgrammingWiki
Wiki-Quelltext dieser Seite.
<language>Python</language> == Turtle mit Python == <canvas></canvas> <run id="6a33c79c14744"> canvas = window.Canvas turtle = window.Turtle c = canvas.new(1) c.clear() t = turtle.new(1) t.home() isUp = False for i in range(18): t.penColor(i*10+50,0,250-10*i) t.penWidth(8) t.forward(20) t.right(20) isUp = not isUp if (isUp): t.penUp() else: t.penDown() </run> <run id="6a33c80f5e470"> </run>