Answer Posted / hr@tgksolutions.com
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 are the 3 types of numbers in python?
Explain class __init__()?
What is MySQLdb?
Is python a single inheritance?
What is pip software in the python world?
What is meant by“call by value” in python?
What is docstring? How to define it?
What does means by split do in python?
what's wrong with import all?
How will you do debugging in python?
How does the ternary operator work in python?
How to determine the type of instance and inheritance in python?
How do you exit a python script?
How type casting is done in python?
Explain about indexing and slicing operation in sequences?