O'Reilly logo
  • Chris Kang thinks this is interesting:

for i in updown(3)

From

Cover of Python in a Nutshell, 3rd Edition

Note

Purtting a generator in "for" look executes the generator one at a time until it hits return.