Well done!

You have completed Loop Else Quiz!

Quiz Question 1 of 5

Given the following code snippet, what will the final value of exp be if n = 20?

n = 20
exp = 0
while n > 1:
    if n % 2 == 0:
        n = n // 2
        exp += 1
    else:
        break
else:
    exp *= 2

Choose the correct answer below:

Skip Quiz Review Instruction