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
Python How to create a multidimensional list?
What is the biggest challenge facing your current job right now? What is your biggest failure?
What happens with the following function definition?
Do they know a tuple/list/dict when they see it?
How do I run notepad ++ in python?
How is python better than c?
Does python support switch or case statement in Python? If not what is the reason for the same?
What is python good for?
Is python call by reference or value?
How will you convert a string to all lowercase?
How to pass indefinite number of arguments to any function?
What is python used for at google?
How do I create a variable number of variables?
What are disadvantages of python?
Explain the uses of the modules sqlite3, ctypes, pickle, traceback, and itertools.