Python | Java |
Form:
if <Boolean expression>: The statements in the consequent and each alternative are marked by indentation. |
Form:
if (<Boolean expression>){ The statements in the consequent and each alternative are marked by curly braces ({}). When there is just one statement, the braces may be omitted. Each Boolean expression is enclosed in parentheses. |