Question: is xrange in python 3?
Answer: In Python 3, there is no xrange , but the range function behaves like xrange in Python 2. If you want to write code that will run on both Python 2 and Python 3, you should use range().