Iterator Example From Dive Into Python 3
I'm learning Python as my 1st language from http://www.diveintopython3.net/. On Chp 7, http://www.diveintopython3.net/iterators.html, there is an example of how to use an iterator.
Solution 1:
The return
statement ends the function at that point, returning a value to the caller. This can be relied upon in almost any situation (if you have a try..except..else..finally
structure, even a return
statement won't prevent the finally
block from being executed).
Post a Comment for "Iterator Example From Dive Into Python 3"