#!/usr/local/bin/python2 print next(i for i in reversed([1,2,3]) if i == 2)