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
How does python input work?
What is python programming language?
What happened if we call a key that is not present in dictionary and how to tackle that kind of error ?
What is tuple in python?
What does join () do in python?
What is sockets? Explain.
Can a constructor be static?
What are advantages of a tuple over a list?
How is python used in the real world?
Why python is the best?
Explain about multi-threading concept in python?
How do you split a string in python?
Which software is used for python?
How to read a 10gb (or larger) file size in python?
What is difference between set and list in python?