language check done for `getting started with functions`
Writing an if/elif/else block:\begin{lstlisting}if condition1: # do A, B, Celif condition2: # do D, Eelse: # do Y, Z\end{lstlisting}The ternary operator:{\ex \lstinline| C if X else Y|} -- Do C if X is True else do Y.