You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I m new to this, but just copied full code in python 3.6 and got error xrange not defined is there any input file or something needed other than just coping code down and executing?
The text was updated successfully, but these errors were encountered:
To embellish comments: xrange is a a python 2 function, which does not exist in python 3 (more precisely, python 2 range went away with python 3, with xrange renamed to range). See bottom of the pythoncentral link provided by xCloudx8. I suspect you also had problems with print which was changed from a "special statement" to a function. You can't "print x" in python 3, rather use "print(x)".
I m new to this, but just copied full code in python 3.6 and got error xrange not defined is there any input file or something needed other than just coping code down and executing?
The text was updated successfully, but these errors were encountered: