New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Here is an article. It is all about differences of memory allocation between immutable and mutable objects.
https://stackoverflow.com/questions/3340539/why-is-tuple-faster-than-list-in-JUMP_LINK__&&__python__&&__JUMP_LINK