Define a function named print\_pyramid(number\_of\_rows) which takes an integer as a parameter and prints a specific pyramid pattern using numbers. Note: you may assume that the number of rows will always be > 1 and < 10 and you must use a nested for loop.

For example:

[Pyramid I'm meant to get](https://i.stack.imgur.com/BdCZT.png)

Above is my question and what I need to get, but I am unsure on how to complete it below is my code attempt and my result.
This is my code:

```
def print_pyramid(number_of_rows):

    for row in range(number_of_rows):

        for column in range(row, number_of_rows):
            print("", end="")

        for column in range(row+1):
            print(row+1, end="")

        for column in range(row, number_of_rows-1):
            print(" ", end= "")

        for column in range(row+1):
            print(row+1, end="")

        print() 

```

But my code gives me this:
[My result/output](https://i.stack.imgur.com/zzkvQ.png)