Multiple else

Report a typo

Have a look at the code below and determine which else is run.

And again, what will be the value of i at the end of this code's execution?

i = 10
while i > 0:
    i -= 2
    if i % 2 == 1:
        break
    else:
        i -= 2
else:
    print("End.")
Select one option from the list
___

Create a free account to access the full topic