New course! Every coder should learn Generative AI!
Try a free lesson0
How to reduce memory exceeded in python 3
1 Answer
+ 9
Use more efficient data structures and design better algorithms.
If all that fails, use a different programming language that has better access to low level memory management (c/c++).
Maybe if you share your code, you could get more specific suggestions :)