I am having trouble figuring out how to create a function that draws a capital I based on a user input. If the user input is 1, it draws one I, if it's 2 it draws 2 I's, in this pattern seen below.
I can manually do the first 2 levels just by using simple turtle methods but how do you recursively do this so it will do it for higher levels?
def my_turtle_function(n):
my_win = turtle.Screen()
my_turtle = turtle.Turtle()
my_turtle.speed(2)
my_turtle.left(90)
if n == 1:
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.forward(-200)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(200)
my_turtle.right(90)
my_turtle.forward(100)
my_turtle.forward(-200)
my_turtle.forward(100)
my_turtle.right(90)
my_turtle.forward(100)

