lab_names/square_demo.py

20 lines
222 B
Python

from turtle import *
def square():
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
forward(100)
right(90)
square()
forward(100)
square()
forward(100)
square()
done()