Question #876

What is the output of the code snippet below?
a = 1
a -= 2 + 3
print(a)

When the -= operator is used (decrement assignment), the whole right side of the operator is substracted to the variable. (python-reference.readthedocs.io/en/latest/docs/operators/...)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต