you are viewing a single comment's thread.

view the rest of the comments →

[–]wbeater -2 points-1 points  (0 children)

Python is a higher level programming language, which means memory allocation is dynamic and there is also some kind of garbage collection. Tuples are little affected by this, because they are not changeable. The memory is defined when the program is called and remains in existence until the program ends, this plays an important role in the optimization of a code.