What is the output of the following program when it is run with the Python interpreter?
The variable a starts at 10, is increased to 15 by a = a + 5, and is increased by another 5 by a += 5, so print(a) outputs 20.
a
a = a + 5
a += 5
print(a)
Community Discussion