Performance
range() is faster than while loop with i+1 operation.
because int is immutable.
and xrange was faster than range in python2 but in python3 xrange is replaced to range
Last updated
Was this helpful?