2. Vorlesung

This commit is contained in:
DerGrumpf 2024-10-23 23:26:55 +02:00
parent 17696ed145
commit 9ea256c27e
2 changed files with 65 additions and 16 deletions

View File

@ -4,21 +4,21 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "e850c7528c0251e8", "id": "941e0fc0c5ab98c7",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "52f0e78412d10bc3", "id": "6806b28ddfe0c9c2",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
"file": "Lectures/01 18.10.2024.md", "file": "Lectures/02 25.10.2024.md",
"mode": "source", "mode": "source",
"source": false "source": false
}, },
"icon": "lucide-file", "icon": "lucide-file",
"title": "01 18.10.2024" "title": "02 25.10.2024"
} }
} }
] ]
@ -183,30 +183,30 @@
"table-editor-obsidian:Advanced Tables Toolbar": false "table-editor-obsidian:Advanced Tables Toolbar": false
} }
}, },
"active": "52f0e78412d10bc3", "active": "6806b28ddfe0c9c2",
"lastOpenFiles": [ "lastOpenFiles": [
"Timetable.md",
"Lectures/02 25.10.2024.md", "Lectures/02 25.10.2024.md",
"Lectures/01 18.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", "Evaluation WiSe 23 24.md",
"Lectures/16 14.02.2025.md", "Lectures/16 14.02.2025.md",
"To Do.md", "To Do.md",
"Umfrage.md", "Umfrage.md",
"Einführung.pdf", "Einführung.pdf",
"Einführung.key", "Einführung.key",
"Timetable.md",
"README.md", "README.md",
"Lectures/07 29.11.2024.md", "Lectures/07 29.11.2024.md",
"Lectures/10 03.01.2025.md",
"Lectures/17 21.02.2025.md", "Lectures/17 21.02.2025.md",
"Lectures/15 07.02.2025.md", "Lectures/15 07.02.2025.md",
"Timetable.pdf", "Timetable.pdf",
"Lectures/12 17.01.2025.md",
"Lectures/08 06.12.2024.md", "Lectures/08 06.12.2024.md",
"Lectures/04 08.11.2024.md", "Lectures/04 08.11.2024.md",
"Lectures/11 10.01.2025.md",
"Lectures/09 13.12.2024.md", "Lectures/09 13.12.2024.md",
"Lectures/05 15.11.2024.md", "Lectures/05 15.11.2024.md",
"Lectures/13 24.01.2025.md",
"Lectures/06 22.11.2024.md", "Lectures/06 22.11.2024.md",
"Lectures/03 01.11.2024.md", "Lectures/03 01.11.2024.md",
"Lectures/14 31.01.2025.md", "Lectures/14 31.01.2025.md",

View File

@ -5,14 +5,63 @@ tags:
--- ---
# Content # Content
- [ ] Jupyter erklären - [ ] Jupyter erklären
- [ ] assert statement
- [ ] Ausgabe - Tutorial 1 - [ ] Ausgabe - Tutorial 1
- [ ] Modula-2 mitnehmen - [ ] Modula-2 mitnehmen
- [ ] Datentypen - [ ] Print
- [ ] Variabeln
- [ ] Kommentare - [ ] Kommentare
- [ ] Datentypen
- [ ] Integer
- [ ] Float
- [ ] Bool
- [ ] Sequentielle Datentypen - [ ] Sequentielle Datentypen
- [ ] Conditions - [ ] Lists
- [ ] Dictionarys
- [ ] Sets
- [ ] Strings
- [ ] Docstrings
- [ ] Formatstrings
- [ ] Conditionals
- [ ] If-Else - [ ] If-Else
- [ ] While - [ ] and, or, not
- [ ] While Loops
- [ ] Funktionen - [ ] 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)