There is a problem when i deal with print() function(Python 3).
When I'm looking for sum of a series I may use the following code pattern:
>>> sum(i for i in range(101))
But when I tend to check the series that I had made: (I choose print() and assume it will print out line by line)
>>> print(i for i in range(101))
It turns out become a generator object without value return. So I have to used list() for series checking. Is that a flaw in print function?
PS: The above written is an example to form a generator, not the simplest form for natural series but the bone structure for complex series. In order for convenience in series values checking, I am looking for a way to print out each value line by line.