Flow Control Overview

From Master of Neuroscience Wiki
Revision as of 10:58, 15 October 2025 by Davrot (talk | contribs) (Created page with " == The goal == Let us look what kind of options we have for flow control in Python. Questions to [mailto:davrot@uni-bremen.de David Rotermund] '''Logic blocks need to be indented. Preferable with 4 spaces!''' There is called a so called [https://docs.python.org/3/reference/index.html The Python Language Reference] {| class="wikitable" !Selection statements |- |[https://docs.python.org/3/reference/compound_stmts.html#the-if-statement if, elif, else​] |- |[https://do...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The goal

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