From 3c4df937fa78800f9dd872f584349629d6ffedf7 Mon Sep 17 00:00:00 2001 From: David Rotermund <54365609+davrot@users.noreply.github.com> Date: Wed, 6 Dec 2023 21:20:21 +0100 Subject: [PATCH] Create README.md Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> --- python_basics/flow_control_overview/README.md | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 python_basics/flow_control_overview/README.md diff --git a/python_basics/flow_control_overview/README.md b/python_basics/flow_control_overview/README.md new file mode 100644 index 0000000..ff3e9a9 --- /dev/null +++ b/python_basics/flow_control_overview/README.md @@ -0,0 +1,41 @@ +# Flow Control Overview +{:.no_toc} + + + +## The goal + +Let us look what kind of options we have for flow control in Python. + +Questions to [David Rotermund](mailto:davrot@uni-bremen.de) + +There is called a so called [The Python Language Reference](https://docs.python.org/3/reference/index.html) + +|Selection statements​| +|---| +|[if, elif, else​](https://docs.python.org/3/reference/compound_stmts.html#the-if-statement)| +|[match case (>= Python 3.10)](https://docs.python.org/3/reference/compound_stmts.html#the-match-statement)| + +|Iteration statements (Loops)​| +|---| +|[for loop​](https://docs.python.org/3/reference/compound_stmts.html#the-for-statement)| +|[while loop](https://docs.python.org/3/reference/compound_stmts.html#the-while-statement)| + +|Functions​| +|---| +|[functions​](https://docs.python.org/3/reference/compound_stmts.html#function-definitions)| +|[return​](https://docs.python.org/3/reference/simple_stmts.html#the-return-statement)| +|[lambda](https://docs.python.org/3/reference/expressions.html#lambda)| + +|Jump statements​| +|---| +|[break​](https://docs.python.org/3/reference/simple_stmts.html#the-break-statement)| +|[continue​](https://docs.python.org/3/reference/simple_stmts.html#the-continue-statement)| +|[pass​](https://docs.python.org/3/reference/simple_stmts.html#the-pass-statement)| + +|Error handling| +|---| +|[try](https://docs.python.org/3/reference/compound_stmts.html#the-try-statement)|