From 6efac7b179ed8fdcfac179c27aa0a917b02cdef5 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Wed, 13 Mar 2024 14:45:23 +0100 Subject: [PATCH] New Flask documentation --- docs/rpi-documentation/Flask.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/rpi-documentation/Flask.md diff --git a/docs/rpi-documentation/Flask.md b/docs/rpi-documentation/Flask.md new file mode 100644 index 0000000..a25412f --- /dev/null +++ b/docs/rpi-documentation/Flask.md @@ -0,0 +1,16 @@ +# Flask + + +## Introduction +Flask is a micro web framework written in Python. It is easy to use and has a lot of documentation. We are going to use Flask to serve our REST api. + +## Cheatsheet +```python +print(f"Hello world have a nice {args}!") +``` +This way you can put variables in a string. This is called f-strings. + + + +## Rules for python +* You can only use one return statement in a function. \ No newline at end of file