Answer Posted / glibwaresoftsolutions
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 does time time () do in python?
Why numpy is used in python?
How do I debug an extension?
How to use of return keywords in python?
What is class in python?
What is meant by r strip() in python?
Which programming language is a good choice between java and python?
How can you create a gui based application in python for client-side functionality?
What is static in python?
Explain the use of ternary operator in python?
How do I run a python script?
Which is faster tuple or list?
Explain other string literals?
What is the speciality of python?
How is unit test done in python?