What is the different between range () and xrange () functions in python?
Answer / Shakti Singh Gurjar
The main difference between range() and xrange() functions in Python is that range() generates a list of numbers, while xrange() generates an iterator. Using xrange() can save memory when working with large ranges, as it doesn't create the entire sequence at once.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a repl in python?
What is the default argument in all the functions inside a class?
How do you implement json given that python is best suited for the server-side application?
How to run a Python CGI script in Wamp?
Explain python is one line?
What is the mro in python?
What is a docstring in python?
Is python good for coding?
python is case sensitive ?
Tell me what is flask & its benefits?
What is a singleton python?
Explain in detail – inheritance in python?