I have a line of Python code that doesn't work the way it should (at least to the best of my knowledge). Following is the code line:
print 'progress: {}%'.format((i/len(e_numbers))*100)
The value of i
starts from 0
and goes up to length of e_numbers
which is a list
, while the length of e_numbers
is around 17000
. But the code always prints Progress: 0%
.
Any idea why?