The most common way to process a list is with a for loop. The syntax for item in list: iterates through each element.
Given fruits = ["apple", "banana", "cherry"], this loop prints each fruit: python for fruit in fruits: print(fruit) The variable fruit takes each value in turn: first "apple", then "banana", then "cherry". Choose descriptive variable names. for student in students: is clearer than for s in students:.
This pattern works with any iterable, not just lists. Inside the loop, you can use the current element for any operation: calculations, conditionals, function calls, or building new data structures.