logo CodeStepByStep logo


Language/Type: Python for nested loops

What does the following code prout?

for i in range(1, 11):
    for j in range(1, 11 - i):
        print(" ", end="")
    for j in range(1, 2 * i):
        print("*", end="")

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.