title: Collect user input to determine size of rectangle in Turtle
body: <p>We were asked to create a function <code>draw_rectangle()</code> with 4 parameters that when called forms a rectangle. I tried writing a code but when I run it, an error comes up for the 'turtle.goto(x,y)' saying its a string or something, here is the code:</p>
  
  <pre><code>import turtle 
  
  def draw_rectangle(x, y, width, height):
    turtle.up()
    turtle.goto(x, y)
    turtle.down()
    turtle.forward(width)          
    turtle.left(90)
    turtle.forward(height)
    turtle.left(90)
    turtle.forward(width)
    turtle.left(90)
    turtle.forward(height)
    turtle.left(90)
  
  
  x = print(input("Enter x"))
  y = print(input("Enter y"))
  width = print(input("Enter width"))
  height = print(input("Enter height"))
  print(draw_rectangle(x, y, width, height))
  </code></pre>