NameError: global name 'xrange' is not defined in Python 3?

I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x...

NameError: global name 'xrange' is not defined in Python 3?

I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x...

NameError: global name 'xrange' is not defined in Python 3?

I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x...

range() with a 'forbidden' value??

Let's have an example. I have an ordinary function like this: def function(x): for b in range(0, 5): pr...

How to use indirect reference to select a single cell or range in vba?

I need simply a code for selecting a cell, however that cell to select changes. I have a cell in the workbook that w...

NameError: global name 'xrange' is not defined in Python 3?

I am getting an error when running a python program: Traceback (most recent call last): File "C:\Program Files (x...

Is there a need for range(len(a))??

One frequently finds expressions of this type in python questions on SO. Either for just accessing all items of the ...

What is the difference between range and xrange functions in Python 2.X??

Apparently xrange is faster but I have no idea why it's faster (and no proof besides the anecdotal so far that it is...

Excel VBA - select a dynamic cell range?

I want to be able to dynamically select a range of cells (the heading row), where the row is 1 but the columns with ...

Python 3 turn range to a list?

I'm trying to make a list with numbers 1-1000 in it. Obviously this would be annoying to write/read, so I'm attempti...

range() for floats?

Is there a range() equivalent for floats in Python? >>> range(0.5,5,1.5) [0, 1, 2, 3, 4] >>> rang...

How to find integer array size in java?

below is my code which is throwing error: Cannot invoke size() on the array type int[] Code: public class Exampl...

Print a list in reverse order with range()??

How can you produce the following list with range() in Python? [9, 8, 7, 6, 5, 4, 3, 2, 1, 0] ...