{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ea40c98a-a807-453d-8e93-eb22fce32f39",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-03T07:39:05.964733Z",
     "iopub.status.busy": "2026-11-03T07:39:05.964596Z",
     "iopub.status.idle": "2026-11-03T07:39:05.967630Z",
     "shell.execute_reply": "2026-11-03T07:39:05.967231Z",
     "shell.execute_reply.started": "2026-11-03T07:39:05.964720Z"
    }
   },
   "outputs": [],
   "source": [
    "def g(xs):\n",
    "    summe_ungerade = 0\n",
    "    summe_gerade = 0\n",
    "\n",
    "    for zahl in xs:\n",
    "        if zahl % 2 == 0:\n",
    "            summe_gerade = summe_gerade + zahl\n",
    "        else:\n",
    "            summe_ungerade = summe_ungerade + zahl\n",
    "\n",
    "    return (summe_ungerade, summe_gerade)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "8a4cf2a6-7c3e-4dac-a25e-91c4393afbeb",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-03T07:48:35.455313Z",
     "iopub.status.busy": "2026-11-03T07:48:35.455010Z",
     "iopub.status.idle": "2026-11-03T07:48:35.459382Z",
     "shell.execute_reply": "2026-11-03T07:48:35.458429Z",
     "shell.execute_reply.started": "2026-11-03T07:48:35.455284Z"
    }
   },
   "outputs": [],
   "source": [
    "zahlen = [1,2,3,4,5,6,7,8,9]\n",
    "\n",
    "(wert1, wert2) = g(zahlen)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "a5c01256-44bc-4e2b-b729-7c9c849ecabd",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-03T07:48:38.658525Z",
     "iopub.status.busy": "2026-11-03T07:48:38.658241Z",
     "iopub.status.idle": "2026-11-03T07:48:38.662431Z",
     "shell.execute_reply": "2026-11-03T07:48:38.661592Z",
     "shell.execute_reply.started": "2026-11-03T07:48:38.658489Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "20\n"
     ]
    }
   ],
   "source": [
    "print(wert1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "3470da7e-5717-463f-8ea1-5fdf369dca87",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-03T07:48:41.354033Z",
     "iopub.status.busy": "2026-11-03T07:48:41.353761Z",
     "iopub.status.idle": "2026-11-03T07:48:41.357847Z",
     "shell.execute_reply": "2026-11-03T07:48:41.356978Z",
     "shell.execute_reply.started": "2026-11-03T07:48:41.354008Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "25\n"
     ]
    }
   ],
   "source": [
    "print(wert2)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2319d153-b986-47cc-8f70-9232dcb7acfa",
   "metadata": {},
   "source": [
    "# Hundesteuerberechnung"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "614684ac-6816-4512-bc70-1f762c411be0",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-11-03T07:59:26.288926Z",
     "iopub.status.busy": "2026-11-03T07:59:26.288597Z",
     "iopub.status.idle": "2026-11-03T07:59:26.292085Z",
     "shell.execute_reply": "2026-11-03T07:59:26.291252Z",
     "shell.execute_reply.started": "2026-11-03T07:59:26.288897Z"
    }
   },
   "outputs": [],
   "source": [
    "# 1. Teilaufgabe: Steuersatz zu berechnen:\n",
    "#    Eingabe: Anzahl der Hunde"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6057ec61-131e-4306-90ca-bb0083232ab0",
   "metadata": {},
   "outputs": [],
   "source": [
    "def berechne_steuersatz(anzahl_normalhunde, anzahl_kampfhunde):\n",
    "\n",
    "    anzahl_gesamt = anzahl_normalhunde + anzahl_kampfhunde\n",
    "\n",
    "    if anzahl_gesamt == 1:\n",
    "        return 120\n",
    "    "
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.15"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
