how to make python work faster?

sometimes when I write a python 3.x code with too many nested loops and some big values it just takes too long to give the answer. so my question is how to optimize my code sothat it run faster or where should I learn optimizing?
Thank You!

Try to avoid too many nested loops. Use some other algorithm.

show us your code, and we’ll try to help :slight_smile: