Add exercises from sw5 theory lesson

This commit is contained in:
schaermicha1 committed 2026-03-20 15:18:03 +01:00
1 parent 4f1450fe6e
commit ecf4a2ed7a
2 files changed
+39

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import json
from pathlib import Path
def create_orders():
path = Path("data/processed")
path.mkdir(parents=True, exist_ok=True)
orders_path = path / "orders.csv"
orders_path.open("w", encoding="utf-8")
def create_settings():
settings = {"mode": "debug", "retries": 3}
with Path("data/processed/settings.json").open("w", encoding="utf-8") as f:
json.dump(settings, f, indent=2, ensure_ascii=False)
if __name__ == "__main__":
# create_orders()
(create_settings())