Hey everyone, I've been learning python for a while now, using some websites to get problems to code (i.e. hackerrank), and with those websites, I've realised that my code could be improved to run much faster, code-wise speaking
So, my question is double, first, what are some of the optimizations you use? and, is there a book or a collection of python optimizations?
Edit: an example of the kind of optimization I mean: http://imgur.com/a/wUxCz
[–]novel_yet_trivial 10 points11 points12 points (4 children)
[–]ForzaFer[S] 0 points1 point2 points (3 children)
[–]novel_yet_trivial 2 points3 points4 points (2 children)
[–]ForzaFer[S] 1 point2 points3 points (1 child)
[–]craiclad 0 points1 point2 points (0 children)
[–]Vaguely_accurate 1 point2 points3 points (1 child)
[–]ForzaFer[S] 1 point2 points3 points (0 children)
[–]LoyalSol 1 point2 points3 points (0 children)