Ans: xrange and range provide a way to generate a list of integers for your requirements. While range returns a Python list object, xrange returns an x range object which makes it ideal for generating a wide range of list.