I'm new in programming and I'm facing an error in Python that I didn't find a way to correct.
I'm trying to use the function range(). According to documentation if I try the follow command it should print as follows:
print(range(4))
[1, 2, 3, 4]
However when I execute it in console or in a script .py the output is as follows:
print(range(4))
range(0, 4)
>>>
I tried to find something online without success. I check the documentation, used 'help(range)' and it should work according to the documentation and examples I saw online. I tried also console, pycharm, visual studio, always the same.