logo CodeStepByStep logo


Language/Type: Python for loops mystery nested loops print

What is the output of the following sequence of loops?

for i in range(1, 3):
    for j in range(1, 4): 
        for k in range(1, 5): 
            print("*", end="")
        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.