logo CodeStepByStep logo

number_total

Language/Type: Python basics for loops mystery

What is the output of the following loop?

total = 10
for number in range(1, total // 2):
    total = total -  number
    print(total, number)
output

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.