28 February 2022

Public Iteration

YouTube Materials

Stack Video

At the risk of repeating myself we need to learn how to run code repeatedly. There are two forms of looping in Python, definite and indefinite. We will do definite looping first.

What is an iterator? An iterator is a rule that governs the manner in which a collection is traversed. If an object has an iterator, it is called an iterable. All Python container types are iterables, as we shall soon see.

Home on the range This is an iterator that walks through an arithmetic integer sequence.

find all scrabble words taht contain 3 or more Z, and print them out.