#!/usr/local/bin/python2 it = reversed(e for e in [1,2,3] if e <= 0) print next(it, None)