Flow Control Overview: Difference between revisions
From Master of Neuroscience Wiki
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..." |
No edit summary |
||
| Line 1: | Line 1: | ||
Let us look what kind of options we have for flow control in Python. | Let us look what kind of options we have for flow control in Python. | ||
Latest revision as of 16:04, 17 October 2025
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 |