Xrange returns the xrange object while range returns the list and uses the same memory and no matter what the range size is. Post navigation How can you convert a number to a string? What is module and package in Python?