Before running the for loop the variable xrange is not defined.
for img_id in xrange(2000):
The error is as follows:
_(myMONO) C:\Users\KJoshi\OneDrive\Applanix\myPythonExample\myMONO>python test.py
Traceback (most recent call last):
File "test.py", line 13, in <module>
for img_id in xrange(2000):
NameError: name 'xrange' is not defined_
Never Mind, I am using python version 3.6.2 and according to the documentation, the xrangecommand is no longer available.
https://wiki.python.org/moin/ForLoop
Before running the for loop the variable xrange is not defined.
The error is as follows: