Iteration
Domain: Programming Fundamentals
π― Motivation
Going through items one by one is one of the most common programming patterns - iteration makes this possible.
π Concrete Example
for x in [1, 2, 3]: print(x) iterates over the list. for ch in 'Hello': print(ch) iterates over each character.
π Analogy
Reading a book page by page - you donβt read all pages at once; you go through them one at a time (iterate), processing each before moving to the next.