# make the turtle graphics module available import turtle # also make the random module available import random # set up our graphical canvas # width = 500, height = 500 turtle.setup(500, 500) # get a stroke color stroke = input("Enter a color for the stroke of your shape: ") # get a fill color fill = input("Enter a color for the fill of your shape: ") # set the pen color turtle.pencolor(stroke) # set pen size turtle.pensize(5) # set our fill color turtle.fillcolor(fill) # start filling our shape turtle.begin_fill() # draw a square turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) # stop filling our shape turtle.end_fill()