Every day I love python more and more.
Today, I was writing some code like:
for i in xrange(N): do_something()
I had to do som
I just use for _ in range(n), it's straight to the point. It's going to generate the entire list for huge numbers in Python 2, but if you're using Python 3 it's not a problem.
for _ in range(n)