Python (Turtle) drawing help Please : So my problem is that my height of the tower variable is not printing at all, and I feel if it did it would not work, I cannot understand why this isn't working please help.

My Code:

    import turtle
    bob = turtle.Turtle()
    turtle.setup(width = 400, height = 300)
    turtle.bgcolor("orange")
    n = int(input("Please enter number of towers: "))
    h = (input("Please enter height of towers : "))
    x = str(h.split(","))
    def ocean():
        bob.setpos(-200, 0)
        bob.color("midnightblue", "midnightblue")
        bob.begin_fill()
        for x in range(1, 3):
            bob.forward(400)
            bob.right(90)
            bob.forward(150)
            bob.right(90)
        bob.end_fill()
    
    def tower():
        bob.right(90)
        for x in range (0,n):
            bob.forward(x)
            
            
    ocean()
    tower()

