News

Python iterables are objects that can be iterated over, meaning they can be used in a loop to access their elements one by one. Iterables can be lists, tuples, dictionaries, sets, strings, and more.
You may remember we used .index() in the data storage lab to search for characters that appear multiple times in a string- Python only returned the first occurrence of the character because of how ...
This talk will start from the way Python iterates of over a sequence, in comparison with iterating by index, like C. The key point of iterating over a sequence is that something needs to track which ...