A blank in a star staircase

Fill in the blanks · Basic · §7.6 Nested loops and the first math helper

Print n lines of stars: 1 star on the first line, 2 on the second, and so on. Fill in the blank in the inner range().

Code with blanks

n = 3
for i in range(1, n + 1):
    for j in range(____):
        print("*", end="")
    print()

Solve this problem in your browser

Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.