&gt; Unlike Python, short one line blocks can be expressed after the colon as a form of syntactic brevity<p>The author might not be aware of it, but Python does actually have this syntax feature, for this exact purpose.