I asked this question here Formatting All the elements of a list in Python? .
In one of the answers, @CiganoMorrisonMendez put the following excerpt:
list(range(1, 10))
However, whenever I used Python
, I used
range(1, 10)
Is this a conversion to list
? But does range
no longer return a list
?
Update
I did a test on the command line and the result that was returned was this:
type(range(1, 10))
<type 'list'>