On Mon, 15 Jan 2024 at 08:15, Left Right <olegsivokon at gmail.com> wrote: > Python grammar rules prevent function definition from > appearing in left-hand side of the head of the for loop. However, a > variable declaration, which is also a statement, is allowed there. What is a "variable declaration" in Python? Please elaborate. ChrisA