by alfnoodles · 5y ago · 0 comments
Note that python uses if/else for the ternary expression form as well: `a = b if c else d`
Though personally, I like to have the condition in the front, instead of in the middle.
max = if a < b then b else a
You may also like `jq` syntax with `elif`s: if cond1 then res1 elif cond2 then res2 ... else res end