[Tutor] xrange

Kent Johnson kent37 at tds.net
Tue Mar 18 23:21:21 CET 2008


Alan Gauld wrote:

> Add a 3rd step-value argument to range. (You don't need the xrange
> on modern versions of Python BTW)

Only if by 'modern' you mean Python 3; on Python 2.x there is a 
difference between range() and xrange(). Though for a list of 20 ints I 
don't think it matters much.

Kent


More information about the Tutor mailing list