{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "67be4212-aba2-4fa3-b013-d51bd6d90aae",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T06:37:40.993906Z",
     "iopub.status.busy": "2026-10-13T06:37:40.993616Z",
     "iopub.status.idle": "2026-10-13T06:37:40.996451Z",
     "shell.execute_reply": "2026-10-13T06:37:40.995916Z",
     "shell.execute_reply.started": "2026-10-13T06:37:40.993876Z"
    }
   },
   "outputs": [],
   "source": [
    "a = 3.0\n",
    "b = 4.0\n",
    "c2 = a *a + b*b"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "1e16a9cf-4b47-4faf-bd02-564a06fa3446",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T06:38:15.297574Z",
     "iopub.status.busy": "2026-10-13T06:38:15.297153Z",
     "iopub.status.idle": "2026-10-13T06:38:15.301209Z",
     "shell.execute_reply": "2026-10-13T06:38:15.300218Z",
     "shell.execute_reply.started": "2026-10-13T06:38:15.297534Z"
    }
   },
   "outputs": [],
   "source": [
    "c = c2 ** 0.5"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "ebead019-8418-43ac-8d25-a9efab72a408",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T06:38:15.794749Z",
     "iopub.status.busy": "2026-10-13T06:38:15.794500Z",
     "iopub.status.idle": "2026-10-13T06:38:15.798560Z",
     "shell.execute_reply": "2026-10-13T06:38:15.797664Z",
     "shell.execute_reply.started": "2026-10-13T06:38:15.794726Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "5.0\n"
     ]
    }
   ],
   "source": [
    "print(c)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e9e599a5-1426-41a7-9f6e-7f469ad87137",
   "metadata": {},
   "source": [
    "# Wochenaufgabe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "f0596c99-cc0b-4ead-b130-539185689b74",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T07:11:27.351026Z",
     "iopub.status.busy": "2026-10-13T07:11:27.350746Z",
     "iopub.status.idle": "2026-10-13T07:11:27.354782Z",
     "shell.execute_reply": "2026-10-13T07:11:27.353877Z",
     "shell.execute_reply.started": "2026-10-13T07:11:27.351001Z"
    }
   },
   "outputs": [],
   "source": [
    "startkapital = 100\n",
    "zinssatz = 0.03"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "7987dc03-1bb1-45d3-9050-679c9af9e2af",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T07:11:27.710806Z",
     "iopub.status.busy": "2026-10-13T07:11:27.710560Z",
     "iopub.status.idle": "2026-10-13T07:11:27.714903Z",
     "shell.execute_reply": "2026-10-13T07:11:27.713990Z",
     "shell.execute_reply.started": "2026-10-13T07:11:27.710782Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "103.0\n"
     ]
    }
   ],
   "source": [
    "anlagewert_1jahr = startkapital * (1 + zinssatz)\n",
    "print(anlagewert_1jahr)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "571d5bc8-5174-4075-a73c-70ba9a159549",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T07:13:29.126888Z",
     "iopub.status.busy": "2026-10-13T07:13:29.126605Z",
     "iopub.status.idle": "2026-10-13T07:13:29.131417Z",
     "shell.execute_reply": "2026-10-13T07:13:29.130542Z",
     "shell.execute_reply.started": "2026-10-13T07:13:29.126863Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "130.0\n",
      "130.0\n"
     ]
    }
   ],
   "source": [
    "anlagewert_10jahre= startkapital * (1 + zinssatz * 10)\n",
    "print(anlagewert_10jahre)\n",
    "\n",
    "anlagewert_10jahre= startkapital +  (startkapital * zinssatz * 10)\n",
    "print(anlagewert_10jahre)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "1f43cc52-e1de-49d2-89eb-ce73f8712598",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-10-13T07:15:16.909392Z",
     "iopub.status.busy": "2026-10-13T07:15:16.909111Z",
     "iopub.status.idle": "2026-10-13T07:15:16.913577Z",
     "shell.execute_reply": "2026-10-13T07:15:16.912634Z",
     "shell.execute_reply.started": "2026-10-13T07:15:16.909367Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "155.79674166007652\n"
     ]
    }
   ],
   "source": [
    "anlagewert_15jahre = startkapital * (1 + zinssatz)**15\n",
    "print(anlagewert_15jahre)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f9e3a30c-e6b0-43fb-bd15-01f37360c6bd",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "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
}
