1 20-IteratorsGenerators


Previous: 19-TestingFrameworks.html

1.1 Screencasts

1.2 Some syntactic sugar today

https://en.wikipedia.org/wiki/Syntactic_sugar
20-IteratorsGenerators/syntactic-sugar.jpg

1.3 Code

Code (to be stepped through in spyder and/or pudb):
* 20-IteratorsGenerators/iter_00_comprehensions.py
* 20-IteratorsGenerators/iter_01_iterators.py
* 20-IteratorsGenerators/iter_02_generators.py

1.4 List, set, and dictionary comprehensions

A sweet and elegant way to create lists, sets, and dictionaries
* https://docs.python.org/3/tutorial/datastructures.html#list-comprehensions
* https://realpython.com/list-comprehension-python/
* https://www.digitalocean.com/community/tutorials/understanding-list-comprehensions-in-python-3
* https://www.geeksforgeeks.org/comprehensions-in-python/
* https://www.geeksforgeeks.org/nested-list-comprehensions-in-python/
* https://www.learnpython.org/en/List_Comprehensions
* https://www.python-course.eu/python3_list_comprehension.php

1.5 Iterators and generators

1.5.1 Iterators

1.5.2 Generators

1.6 Summary of today’s vocabulary

20-IteratorsGenerators/relationships.png

Next: 21-FunctionalProg.html