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()