You can just construct a list from the range object:

my_list = list(range(1, 1001))

This is how you do it with generators in python2.x as well. Typically speaking, you probably don't need a list though since you can come by the value of my_list[i] more efficiently (i + 1), and if you just need to iterate over it, you can just fall back on range.

Also note that on python2.x, xrange is still indexable1. This means that range on python3.x also has the same property2

1print xrange(30)[12] works for python2.x

2The analogous statement to 1 in python3.x is print(range(30)[12]) and that works also.

Answer from mgilson on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ range-to-a-list-in-python
range() to a list in Python - GeeksforGeeks
July 11, 2025 - The simplest and most efficient way to convert a range object into a list is by using the list() constructor. ... This method is fast, concise, and highly readable. List comprehension provides another efficient and Pythonic way to convert a ...
Discussions

Python In Excel Convert Range to List
Cracked it I think: clist = xl("C2:C3", to_list = True) clist = clist[0].to_list() filt = office_supplies['Rep'].isin(clist) office_supplies[filt] More on reddit.com
๐ŸŒ r/excel
6
1
December 28, 2024
Python range to list - Stack Overflow
I am trying to convert a range to list. More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to convert numeric string ranges to a list in Python - Stack Overflow
I would like to be able to convert a string such as "1,2,5-7,10" to a python list such as [1,2,5,6,7,10]. I looked around and found this, but I was wondering if there is a clean and simple way to d... More on stackoverflow.com
๐ŸŒ stackoverflow.com
Convert range(r) to list of strings of length 2 in python - Stack Overflow
I just want to change a list (that I make using range(r)) to a list of strings, but if the length of the string is 1, tack a 0 on the front. I know how to turn the list into strings using ranger=... More on stackoverflow.com
๐ŸŒ stackoverflow.com
๐ŸŒ
Kodeclik
kodeclik.com โ€บ python-convert-range-to-list
How to convert a Python range to a list
October 16, 2024 - There are three ways to convert a Python range to a list. 1. Use the list() function and apply it on the range. 2. Use a * operator to unpack the range. 3. Create an empty list and use the extend method to convert the range to a list.
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ python โ€บ convert range to list in python
Convert Range to List in Python - Spark By {Examples}
May 31, 2024 - How to convert the range of values to a list in Python? There are multiple ways to convert the range to a list in Python for example you can use the
๐ŸŒ
Python Examples
pythonexamples.org โ€บ python-convert-range-into-a-list
Convert Range into a List
# Take a range myrange = range(4, 15, 2) # Convert range object into a list mylist = list(myrange) print(mylist) ... In this tutorial of Python Ranges, we learned how to convert a range object into a list using list() builtin function.
๐ŸŒ
TutorialKart
tutorialkart.com โ€บ python โ€บ python-range โ€บ python-range-to-list
Convert Python Range to List - Examples
November 30, 2020 - Python Range to List - To convert a Python Range to Python List, use list() constructor, with range object passed as argument. list() constructor returns a list generated using the range.
๐ŸŒ
Spark By {Examples}
sparkbyexamples.com โ€บ home โ€บ python โ€บ convert python range to list
Convert Python Range to List - Spark By {Examples}
May 31, 2024 - How to convert Python range to list? You can create a list using range() function in several ways. The range() function in Python returns a sequence of
Find elsewhere
๐ŸŒ
EyeHunts
tutorial.eyehunts.com โ€บ home โ€บ python convert range to list | example code
Python convert range to list | Example code - EyeHunts
August 26, 2021 - Using 0 to 11 range to create a list 0 to 11. ... In Python 3.x range is an iterator. So, you need to convert it to a list:
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python-convert-string-ranges-to-list
Python | Convert String ranges to list | GeeksforGeeks
May 16, 2023 - ... # Python3 code to demonstrate working of # Convert String ranges to list # Using sum() + list comprehension + enumerate() + split() # initializing string test_str = "1, 4-6, 8-10, 11" # printing original string print("The ...
๐ŸŒ
Note.nkmk.me
note.nkmk.me โ€บ home โ€บ python
How to Use range() in Python | note.nkmk.me
August 18, 2023 - This will be explained at the end of this article. If you want to convert a range object to a list, use the list() function. print(list(range(3))) # [0, 1, 2] source: range_usage.py ยท
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-create-list-of-numbers-with-given-range
Create List of Numbers with Given Range - Python - GeeksforGeeks
... Explanation: np.arange(r1, r2).tolist() uses NumPy's arange() function to generate a sequence of numbers from r1 o r2 .tolist() method converts the NumPy array into a Python list.
Published ย  July 11, 2025
๐ŸŒ
CodeRivers
coderivers.org โ€บ blog โ€บ python-range-to-list
Python `range` to `list`: A Comprehensive Guide - CodeRivers
February 22, 2026 - Converting a range object to a list in Python is a straightforward process using the list() constructor. However, understanding the fundamental concepts, usage methods, common practices, and best practices is essential for writing efficient and effective code.
๐ŸŒ
programmerAbroad
programmerabroad.com โ€บ home โ€บ using range() to generate list of numbers in python
Using range() to generate list of numbers in Python - programmerAbroad
March 22, 2024 - In Python we can use the range() built-in function to generate a range of numbers and create a list out of it or set or simply iterate over.
๐ŸŒ
Bomberbot
bomberbot.com โ€บ python โ€บ mastering-range-to-list-conversion-in-python-a-deep-dive-for-enthusiasts
Mastering Range to List Conversion in Python: A Deep Dive for Enthusiasts - Bomberbot
Python's range() function is a cornerstone of sequence generation, but its true power is unleashed when combined with list conversion techniques. This comprehensive guide will take you on a journey from basic conversions to advanced manipulations, equipping you with the knowledge to optimize your code and tackle complex programming challenges.