Sep-19-2020, 03:31 AM
You are correct. The first one has a single object in the list, the second one is the expansion of the range and has the ints inside.
>>> len([range(9)]) 1 >>> type([range(9)][0]) <class 'range'> >>> len(list(range(9))) 9