⬅︎ Back to bool is instance of int in Python
it is easy to get max value in this way, a hack waymax_val = [a, b][a<b]
You shouldn't though because Python has both a builtin max function and a proper ternary operator.
Comment
it is easy to get max value in this way, a hack way
max_val = [a, b][a<b]
Replies
You shouldn't though because Python has both a builtin max function and a proper ternary operator.