for — Easy Playground
Starts a loop that iterates over a sequence or iterable
Python Playground
Output
Click "Run" to execute your codefor iterates over any iterable: lists, ranges, strings, dicts, files, and more.
Challenge
Try modifying the code above to explore different behaviors. Can you extend the example to handle a new use case?