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
Explain me dogpile effect? How can you prevent this effect?
How do I quit python?
Short description of the scoping rules?
What is __init__?
How do you sort a dataframe in python?
What is python __ repr __?
Does python 2.7 come with pip?
What is raw string in python?
Does python supports hybrid inheritance?
Explain split(), sub(), sub() methods of “re” module in python?
Is python dict a hashmap?
Explain me database connection in python flask?
What command do we use to debug a python program?
What is web scraping?
How does mro work in python?