Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "copyright", "credits" or "license()" for more information. Visit http://www.python.org/download/mac/tcltk/ for current information. ================================ RESTART ================================ >>> <__main__.Fib object at 0x103ef2240> Iterator for the Fibonacci seq. 3 100 Fibonacci sequence up to 3 inclusive 0 1 1 2 3 Fibonacci sequence up to 100 inclusive 0 1 1 2 3 5 8 13 21 34 55 89 Power of list magic: [0, 1, 1, 2, 3] Fin >>> f = Fib(5) >>> list(f) [0, 1, 1, 2, 3, 5] >>> iter(f) <__main__.Fib object at 0x103fe9e48> >>> fibiter=iter(f) >>> next(fibiter) 0 >>> next(fibiter) 1 >>> next(fibiter) 1 >>> next(fibiter) 2 >>> next(fibiter) 3 >>> next(fibiter) 5 >>> next(fibiter) Traceback (most recent call last): File "", line 1, in next(fibiter) File "/Users/monica/Desktop/00_CS2316-2015-summer-Metz/FibPreview.py", line 12, in __next__ raise StopIteration StopIteration >>>