I would like to know how many iterations of a for loop were executed. Is there an elegant way? I came up with this:
iterations_num = 0 for iterations_num, ele