Well yeah,
a<min?min:a>max?max:a
isn't exactly readable anyway, I'd say.
In Python, I'd rather write something like
x = min if a < min else (max if a > max else a)
Do note that there are actual min and max functions that can do this, e.g.
x = max(min_val, min(max_val, a))