Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
| gf_informatik:daten_sca:datenverarbeitung_python [2023-06-05 09:17] – [Slides & Lernziele] sca | gf_informatik:daten_sca:datenverarbeitung_python [2025-03-09 06:14] (aktuell) – [JSON] sca | ||
|---|---|---|---|
| Zeile 580: | Zeile 580: | ||
| # SCHREIBEN von JSON-File | # SCHREIBEN von JSON-File | ||
| - | with open(' | + | with open(' |
| - | json.dump(data, | + | json.dump(data, |
| </ | </ | ||
| Zeile 694: | Zeile 694: | ||
| ===== Lösungen ===== | ===== Lösungen ===== | ||
| - | ++++Auftrag | + | <nodisp 2> |
| + | |||
| + | ++++Lösungen | ||
| === Aufgabe A1 === | === Aufgabe A1 === | ||
| Zeile 799: | Zeile 801: | ||
| ++++ | ++++ | ||
| - | ++++Auftrag | + | ++++Lösungen |
| === Teil I === | === Teil I === | ||
| Zeile 938: | Zeile 940: | ||
| writer.writerows(data) # Write the data to the CSV file | writer.writerows(data) # Write the data to the CSV file | ||
| </ | </ | ||
| - | |||
| - | ++++ | ||
| - | |||
| - | ++++Auftrag B (II)| | ||
| - | |||
| - | <nodisp 2> | ||
| === Teil IV === | === Teil IV === | ||
| Zeile 1026: | Zeile 1022: | ||
| writer.writerows(data) # Write the data to the CSV file | writer.writerows(data) # Write the data to the CSV file | ||
| </ | </ | ||
| - | |||
| - | </ | ||
| ++++ | ++++ | ||
| Zeile 1033: | Zeile 1027: | ||
| ++++Lösungen C| | ++++Lösungen C| | ||
| - | |||
| - | <nodisp 2> | ||
| === Teil I === | === Teil I === | ||
| Zeile 1135: | Zeile 1127: | ||
| txt_file.write(' | txt_file.write(' | ||
| </ | </ | ||
| - | |||
| - | </ | ||
| ++++ | ++++ | ||
| Zeile 1142: | Zeile 1132: | ||
| ++++Lösungen D| | ++++Lösungen D| | ||
| - | |||
| - | <nodisp 2> | ||
| ==== Aufgaben D1 ==== | ==== Aufgaben D1 ==== | ||
| Zeile 1329: | Zeile 1317: | ||
| print(count) | print(count) | ||
| </ | </ | ||
| - | |||
| - | </ | ||
| ++++ | ++++ | ||
| + | </ | ||