Programming and Algorithms: Week 33

Banner

Design Patterns 2

What are we doing this week?


This week we are going to look at the ITERATOR PATTERN, with COMPREHENSIONS and GENERATORS.

Python Python Logo

Powerpoint: Iterator Pattern


Powerpoint: Iterator Pattern (Comprehensions)


Powerpoint: Iterator Pattern (Generators)


Total running time of videos is 30 minutes.

Sample Code:
Iterator Pattern * Easier Code * List Comprehensions * Set Comprehensions * Dictionary Comprehensions


Iterables and Iterators: Going Loopy With Python (Steve Holden)


Python Tutorial: Iterators



Links

Lab #33
Lab #33 is all about checking if what you have learned in the episodes above all makes sense, and if you can use the iterator pattern




Back

If you have any suggestions, corrections, or comments, please feel free to e-mail me at:
Damian.Gordon(a)dit.ie