Comment
Comment by greener_grass
In JavaScript you can do this:
In Python, you cannot do this:
Instead, you need to pull it out into a def:
Sometimes, this is no big deal. But other times, it's damn annoying; the language forces you to lay out your code in a less intuitive way for no obvious benefit.