in python 2.x xrange is a generator and range returns a list. In python 3.x xrange is renamed to range replacing the list function with the generator
On Mon, Nov 5, 2012 at 9:23 AM, inshu chauhan <insidesh...@gmail.com> wrote: > what is the difference between range and xrange.. both seem to work the > same. ? And which should be used where and in what situations.. ?? > > -- > http://mail.python.org/mailman/listinfo/python-list > > -- Joel Goldstick
-- http://mail.python.org/mailman/listinfo/python-list