Answer Posted / glibwaresoftsolutions
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 flask?
Explain about cookies in python?
list some of the data science libraries in python
Explain about different blocks in exception handling?
Is vs in python?
What is the difference between the shallow copy and deep copy in python?
What is iterable python?
What is a method call?
How type casting is done in python?
How will you check if all characters in a string are alphanumeric?
What is a pil in python?
What is the difference between cpython and python?
What is gui in python?
How can you unsign or delete variable in python?
Which python memory profiler is recommended?