Zeth Willie covers the basics for using “for” and “while” loops in Python when scripting in Autodesk Maya, providing a great foundation if you are coming over from using the MEL language.

This vid goes over the basics of using python loops in maya

Zeth demonstrates when to use a “for” loop and when to use a “while” loop in Python, and provides some practical examples and then gets into some more advanced concepts such as comprehensions in Python.