Answer Posted / nashiinformaticssolutions
Functionality-wise, xrange and range are nearly identical. Both of these let you create an integer list that you may use however you like. The only distinction between xrange and range is that x range returns an xrange object, whereas range returns a Python list object. Range will use as much memory as possible to produce your array of numbers, which can result in a memory error and crash your program. This is particularly true if you are working with a device that needs a lot of memory, like a phone. It has a memory issue and is a beast.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a tuple in python?
Which statement of python is used whenever a statement is required syntactically but the program needs no action?
Can you use bootstrap with python?
Which is the package fastest form of python?
Why are tuples immutable?
What does Django mean in Python?
What is the purpose of pythonpath environment variable?
List some pdb commands.
How web scraping is done in python, explain in short?
What is the use of numpy package?
What is Java implementation of Python popularly know?
Tell me what is negative index in python?
What good is recursion?
Why python is so popular?
Is map faster than for loop python?