Read the code and its wrong output, then spot the mistake
This program has one bug. Compare what it prints with what it should print — then reveal where the bug is.
# add 2 to the totaltotal = 10total = total - 2print(total)
Actual output (wrong)
8
Expected output
12