Question
What is the difference between Xrange and range?
Answer
Xrange returns the xrange object while range returns the list, and uses the same memory and no matter what the range size is.
What is the difference between Xrange and range?
Xrange returns the xrange object while range returns the list, and uses the same memory and no matter what the range size is.