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
How python is interpreted?
What's a python script?
What is defined isalpha() in python?
How will you check python version?
What is hierarchical inheritance?
Tell us what is python? What are the benefits of using python? What do you understand of pep 8?
How to convert string into datetime?
What is a class definition in python?
What is __ main __ in python?
What is file context manager?
What is the purpose of the single underscore “_” variable in python?
In which field python is used?
What is list comprehension? Give an example.
Write a script to connect to MySql database using Python?
What is chmod 755 in python?