Google News
logo
Python - Interview Questions
What is the different between range () and xrange () functions in Python ?
range () returns a list whereas xrange () returns an object that acts like an iterator for generating numbers on demand.
Advertisement