How do I use xrange in python 3?



How do I use xrange in python 3?..

Answer / Amol Dubey

xrange is replaced by the built-in function range in Python 3. Use `range(start, stop[, step])` instead.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How to overload constructors or methods in python?

1 Answers  


How do I make a data frame out of a list?

2 Answers  


What is data type set in python and how to work with it?

1 Answers  


How to get class name of an instance in Python?

1 Answers  


What does sorted do in python?

1 Answers  


Is instagram written in python?

1 Answers  


How can you make a python script executable on unix?

1 Answers  


Describe how to implement Cookies for Web python.

1 Answers  


What is pyunit in python?

1 Answers  


How do you sort a list in ascending order python?

1 Answers  


How memory is managed in python?

1 Answers  


What does the meaning of gil in python language?

1 Answers  


Categories