I’m trying to make a list with numbers 1-1000
in it. Obviously this would be annoying to write/read, so I’m attempting to make a list with a range in it. In Python 2 it seems that:
some_list = range(1,1000)
would have worked, but in Python 3 the range is similar to the xrange
of Python 2?
Can anyone provide some insight into this?