From 9ea256c27e82cf0b21d7bd5867b28b872aba6f84 Mon Sep 17 00:00:00 2001
From: DerGrumpf
Date: Wed, 23 Oct 2024 23:26:55 +0200
Subject: [PATCH] 2. Vorlesung
---
.obsidian/workspace.json | 20 ++++++-------
Lectures/02 25.10.2024.md | 61 +++++++++++++++++++++++++++++++++++----
2 files changed, 65 insertions(+), 16 deletions(-)
diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json
index e3b2093..9158605 100644
--- a/.obsidian/workspace.json
+++ b/.obsidian/workspace.json
@@ -4,21 +4,21 @@
"type": "split",
"children": [
{
- "id": "e850c7528c0251e8",
+ "id": "941e0fc0c5ab98c7",
"type": "tabs",
"children": [
{
- "id": "52f0e78412d10bc3",
+ "id": "6806b28ddfe0c9c2",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
- "file": "Lectures/01 18.10.2024.md",
+ "file": "Lectures/02 25.10.2024.md",
"mode": "source",
"source": false
},
"icon": "lucide-file",
- "title": "01 18.10.2024"
+ "title": "02 25.10.2024"
}
}
]
@@ -183,30 +183,30 @@
"table-editor-obsidian:Advanced Tables Toolbar": false
}
},
- "active": "52f0e78412d10bc3",
+ "active": "6806b28ddfe0c9c2",
"lastOpenFiles": [
+ "Timetable.md",
"Lectures/02 25.10.2024.md",
"Lectures/01 18.10.2024.md",
+ "Lectures/10 03.01.2025.md",
+ "Lectures/13 24.01.2025.md",
+ "Lectures/12 17.01.2025.md",
+ "Lectures/11 10.01.2025.md",
"Evaluation WiSe 23 24.md",
"Lectures/16 14.02.2025.md",
"To Do.md",
"Umfrage.md",
"Einführung.pdf",
"Einführung.key",
- "Timetable.md",
"README.md",
"Lectures/07 29.11.2024.md",
- "Lectures/10 03.01.2025.md",
"Lectures/17 21.02.2025.md",
"Lectures/15 07.02.2025.md",
"Timetable.pdf",
- "Lectures/12 17.01.2025.md",
"Lectures/08 06.12.2024.md",
"Lectures/04 08.11.2024.md",
- "Lectures/11 10.01.2025.md",
"Lectures/09 13.12.2024.md",
"Lectures/05 15.11.2024.md",
- "Lectures/13 24.01.2025.md",
"Lectures/06 22.11.2024.md",
"Lectures/03 01.11.2024.md",
"Lectures/14 31.01.2025.md",
diff --git a/Lectures/02 25.10.2024.md b/Lectures/02 25.10.2024.md
index 4817c8b..eb4f7d8 100644
--- a/Lectures/02 25.10.2024.md
+++ b/Lectures/02 25.10.2024.md
@@ -5,14 +5,63 @@ tags:
---
# Content
- [ ] Jupyter erklären
+ - [ ] assert statement
- [ ] Ausgabe - Tutorial 1
- [ ] Modula-2 mitnehmen
-- [ ] Datentypen
-- [ ] Variabeln
+- [ ] Print
- [ ] Kommentare
+- [ ] Datentypen
+ - [ ] Integer
+ - [ ] Float
+ - [ ] Bool
- [ ] Sequentielle Datentypen
-- [ ] Conditions
-- [ ] If-Else
-- [ ] While
-- [ ] Funktionen
\ No newline at end of file
+ - [ ] Lists
+ - [ ] Dictionarys
+ - [ ] Sets
+ - [ ] Strings
+ - [ ] Docstrings
+ - [ ] Formatstrings
+- [ ] Conditionals
+ - [ ] If-Else
+ - [ ] and, or, not
+- [ ] While Loops
+- [ ] Funktionen
+
+-> Foo-Bar
+-> 99 Bottles of Beer
+https://www.99-bottles-of-beer.net/
+https://www.youtube.com/watch?v=FITjBet3dio
+
+```python
+beer = 99
+while beer > -1:
+ print()
+ if beer == 0:
+ print('''
+ No more bottles of beer on the wall, no more bottles of beer.
+ We've taken them down and passed them around;
+ now we're drunk and passed out!
+ ''')
+ elif beer == 1:
+ print(beer, "bottle of beer on the wall,", beer, "bottle of beer.")
+ print("Take one down and pass it around, no more bottles of beer on the wall.", end='')
+ else:
+ print(beer, "bottles of beer on the wall,", beer, "bottles of beer.")
+ if beer - 1 == 1:
+ print(f"Take one down and pass it around, {beer - 1} bottle of beer on the wall.")
+ else:
+ print(f"Take one down and pass it around, {beer - 1} bottles of beer on the wall.")
+
+ beer -= 1
+
+```
+# Gruppen
+- MeWi 1 (0/5)
+- MeWi 2 (0/5)
+- MeWi 3 (0/5)
+- MeWi 4 (0/5)
+- MeWi 5 (0/5)
+- MeWi 6 (0/5)
+- DiMuK (0/5)
+- Ing (0/5)
\ No newline at end of file