The size of your lists is limited only by your memory. Please note that depending on your version of Python range(1, 9999999999999999), only a few bytes of RAM are required, since it always creates only one virtual list item that it returns.
If you want to instantiate a list, use list(range(1,n))(this will copy the virtual list).
source
share