In line 4 why do we have to add \"=\" after \"-\" ?
num = 5 if num > 2: print(num) num -= 1 print(num)
the -= is an operator, what you wrote will produce num = num - 1.
-=
num = num - 1