Enzo Cnop2,017 Points
Practical difference between using "+" to append a list and "+="
In practice, what is the difference between using the 'temporary' modifier of a list '+' and the 'permanent' modifier '+='. Obviously one is temporary and one is permanent, but those terms are rather subjective. When does Python decide to forget a temporary list change? How could this be used to my advantage?
Steven Parker74,365 Points
+=" is an addition assignment operator.
It basically combines addition and assignment at the same time. As Jack mentioned, "
x += y" is essentially the same as "
x = x + y". Both of these are types of assignments, so they permanently change the item on the left.