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 is sys stdout flush ()?
How to save an image locally using python whose url address I already know?
What is python and why python?
How do I start learning python?
What are metaclasses and what do we use them for?
How do you remove duplicates from a list in python whilst preserving order?
How do you remove duplicates from a list whilst preserving order?
Can __ init __ return value?
What type of a language is python? Interpreted or Compiled?
What are the different environment variables identified by python?
How do I check whether a file exists without exceptions?
Explain how you can access sessions in flask?
How do you write code in python?
List out standard datatypes in python
How to add an index, row or column to a pandas dataframe?