Rajzolás a Python teknőssel 1. rész
import turtle
s=turtle.getscreen()
t=turtle.Turtle()
"""
t.forward(100)
t.backward(100)
"""
"""
t.forward(100)
t.home()
t.backward(100)
"""
"""
t.forward(100)
t.right(90)
t.forward(100)
"""
"""
t.forward(100)
t.right(90)
t.forward(100)
t.home()
"""
"""
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.forward(100)
t.right(90)
t.home()
"""
"""
t.forward(100)
t.right(60)
t.forward(100)
t.right(60)
t.forward(100)
t.right(60)
t.forward(100)
t.right(60)
t.forward(100)
t.right(60)
t.forward(100)
t.right(60)
"""
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
t.forward(100)
t.left(60)
turtle.done()
A programhoz tartozó videó: