This document discusses for loops in Python. It explains that for loops can be used to iterate over any container, including strings which store a collection of characters. The document provides examples of using for loops to print each character in a string. It also discusses the range function, which can generate a sequence of integers to iterate over in a for loop. The key differences between while and for loops are explained.
Related topics: