May-30-2019, 06:22 PM
That may be an efficiency with += for strings. Since you are adding on to the end of the string, and not creating a new variable name, Python may just add on to the underlying sequence in memory without moving anything around. Mutability/immutability is less of a memory thing than how multiple references to things are handled.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures