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
Mention what are the rules for local and global variables in Python?
What is the scipy?
What is python magic method?
What are non static methods?
How to create dynamic array in python?
What are the ones that can be used with pandas?
Does python have a string ‘contains’ substring method?
What good is recursion?
Why lambda forms in python do not have statements?
What are the basic datatypes in python?
What is the best free ide for python?
What is blob in python?
What applications use python?
How would you create an empty numpy array in python?
What is a numpy array?