[Solved] How to get a list using the range function? [closed]


do list(range(4)).

The range() function returns a generator (only produces one value at a time). You have to convert that generator to a list.

1

solved How to get a list using the range function? [closed]