Comment

Lol Please No

You shouldn't though because Python has both a builtin max function and a proper ternary operator.

Parent comment

Weizhong Tu

it is easy to get max value in this way, a hack way max_val = [a, b][a