First page Back Continue Last page Overview Graphics

“Abbreviated” if, Example

The ternary operator:

max = a if a > b else b

instead of the C way:

max = (a > b) ? a : b

as an abbreviation of:

if a > b:

max=a

else:

max=b