Post

PythonPython

j
jordan chris

Posted on 5th March 2024|34 views

0
votes

Xrange Is Not Defined

Why am I getting an error called xrange is not defined?

Answers
P
sumana reddy

Posted on 5th March 2024

So, by the question, I understood you are using python3. You have just to add xrange = range in your code because xrange in python2 is replaced with the range in python3 rest everything is same

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos