Python programs execute line by line. Conditions evaluate to True or False (booleans). If condition is True, expression executes
Evaluates expression and matches against case clauses. Executes statements after first matching case until break. Can have only one default clause
C is widely used in embedded devices and powers most internet servers. It's a compiled language that generates binary files for execution. C is statically typed, meaning variables have associated types at compile time
Loops execute statements repeatedly until a condition becomes false. Loops consist of a body and a control statement. Loops can be entry-controlled (before condition check) or exit-controlled (after condition check)
RETURN and RETURN NEXT commands allow returning data from functions. RETURN NEXT and RETURN QUERY build result sets sequentially. Functions with output parameters can return current values. Procedures don't have return values, can end without RETURN
Switch statement selects one of many code blocks based on conditions. Expression is evaluated once and compared with case values. Default case executes if no case matches