# polyturtle.py from turtle import * # Draw a square, leaving the turtle in its starting position def square(side): pendown() for i in range(4): forward(side) left(90) # Draw a triangle, leaving the turtle in its starting position def triangle(side): pendown() for i in range(3): forward(side) left(120) def main(): setworldcoordinates(-400, -400, 400, 400) # Call both triangle and square triangle(100) square(100) exitonclick() main()