What is the python minimum integer?NameError: global name 'xrange' is not defined in Python 3

1.0K    Asked by artiTrivedi in Python , Asked on Apr 17, 2021

I am getting an error “python xrange not defined” when running a python program:

Traceback (most recent call last): 

File "C:Program Files (x86)Wing IDE 101 4.1srcdebugtserver_sandbox.py", line 110, in  

File "C:Program Files (x86)Wing IDE 101 4.1srcdebugtserver_sandbox.py", line 27, in __init__ 

File "C:Program Files (x86)Wing IDE 101 4.1srcdebugtserverclassinventory.py", line 17, in __init__ builtins.NameError: global name 'xrange' is not defined

What is the cause of this error?

Answered by arti Trivedi

Traceback (most recent call last):

File "C:Program Files (x86)Wing IDE 101 4.1srcdebug server_sandbox.py", line 110, in

File "C:Program Files (x86)Wing IDE 101 4.1srcdebug server_sandbox.py", line 27, in __init__

File "C:Program Files (x86)Wing IDE 101 4.1srcdebug serverclassinventory.py", line 17, in __init__ builtins.NameError: global name 'xrange' is not defined

What is the cause of this error?



Your Answer

Interviews

Parent Categories