0 votes
1 view
in Python by (47.8k points)

I am getting an error when running a python program:

Traceback (most recent call last): 

File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 110, in <module> 

File "C:\Program Files (x86)\Wing IDE 101 4.1\src\debug\tserver\_sandbox.py", line 27, in __init__ 

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

The game is from here.

What causes this error?

1 Answer

0 votes
by (107k points)

You can use range in Python 3 to your code. To get rid of that error.

Related questions

0 votes
1 answer
0 votes
1 answer
asked 4 days ago in Python by ashely (44.6k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...