Print a pattern of numbers

 for i in range(1, 6):

    for j in range(1, i + 1):

        print(j, end="")

    print()


Comments

Popular posts from this blog

Addition of Two numbers in Python

Linear Regression Model for House Price Prediction in Python

Hello World Python Code with Explanation