x, y = 4, 3if x < y: smaller = xelse: smaller = yprint smallersmaller = (x < y and [x] or [y])[0]print smallersmaller = x if x < y else yprint smaller