Flow Control Overview

From Master of Neuroscience Wiki
Revision as of 16:04, 17 October 2025 by Davrot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Let us look what kind of options we have for flow control in Python.

Questions to David Rotermund

Logic blocks need to be indented. Preferable with 4 spaces!

There is called a so called The Python Language Reference

Selection statements
if, elif, else​
match case (>= Python 3.10)
Iteration statements (Loops)
for loop​
while loop
Functions
functions​
return​
lambda
Jump statements
break​
continue​
pass​
Error handling
try