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
Can I learn python without knowing programming?
What are the best sites to learn python?
How to check whether a module is installed in python?
Is set nesting implemented in python?
What is a lambda in math?
How we can copy an object in python?
How do I sort alphabetically in python?
What is the difference between old style and new style classes in python?
What are the advantages of Python Recursion?
Why is that none of my threads are not running? How can I make it work?
What does the map() function do?
What is difference between input and raw_input in python?
What is set type in python?
How is python an interpreted language?
How do you make hello world in python?