{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "41288261-7b84-482c-9fa0-04b8d64689a9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:38:21.813735Z",
     "iopub.status.busy": "2026-04-22T12:38:21.813425Z",
     "iopub.status.idle": "2026-04-22T12:38:21.819326Z",
     "shell.execute_reply": "2026-04-22T12:38:21.818444Z",
     "shell.execute_reply.started": "2026-04-22T12:38:21.813701Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2\n",
      "5\n",
      "3\n"
     ]
    }
   ],
   "source": [
    "a = 2\n",
    "print(a)\n",
    "a = a + 3\n",
    "print(a)\n",
    "a = 3\n",
    "print(a)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "0f1a4d43-56e4-4177-9e86-a49f8e19b40b",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:38:21.820499Z",
     "iopub.status.busy": "2026-04-22T12:38:21.820215Z",
     "iopub.status.idle": "2026-04-22T12:38:22.005606Z",
     "shell.execute_reply": "2026-04-22T12:38:22.004788Z",
     "shell.execute_reply.started": "2026-04-22T12:38:21.820470Z"
    }
   },
   "outputs": [],
   "source": [
    "a = 4.3\n",
    "b = 2\n",
    "c = a + b + 0.7"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "ba5fce04-1c01-4294-b420-1165cda16e7d",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:38:22.006114Z",
     "iopub.status.busy": "2026-04-22T12:38:22.005975Z",
     "iopub.status.idle": "2026-04-22T12:38:22.131339Z",
     "shell.execute_reply": "2026-04-22T12:38:22.130394Z",
     "shell.execute_reply.started": "2026-04-22T12:38:22.006100Z"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "float"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(c)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "47da9c51-1d26-4c1d-9f46-20b9a2602b38",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:38:22.132511Z",
     "iopub.status.busy": "2026-04-22T12:38:22.132227Z",
     "iopub.status.idle": "2026-04-22T12:38:22.274197Z",
     "shell.execute_reply": "2026-04-22T12:38:22.273358Z",
     "shell.execute_reply.started": "2026-04-22T12:38:22.132483Z"
    }
   },
   "outputs": [],
   "source": [
    "a = 4.3\n",
    "b = 2\n",
    "g = \"Herbert\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "id": "aa3503c4-286d-4cbf-8d50-10b283fb9aa1",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:38:22.607194Z",
     "iopub.status.busy": "2026-04-22T12:38:22.606868Z",
     "iopub.status.idle": "2026-04-22T12:38:22.611464Z",
     "shell.execute_reply": "2026-04-22T12:38:22.610702Z",
     "shell.execute_reply.started": "2026-04-22T12:38:22.607164Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "4.3\n"
     ]
    }
   ],
   "source": [
    "print(a)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7edf062c-8ff5-4ec0-abf7-1ed0e1e2d58f",
   "metadata": {},
   "source": [
    "# Wochenaufgabe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "6e3c739a-6096-4d73-afd6-0d004e5ac9a8",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:44:15.255781Z",
     "iopub.status.busy": "2026-04-22T12:44:15.255270Z",
     "iopub.status.idle": "2026-04-22T12:44:15.260223Z",
     "shell.execute_reply": "2026-04-22T12:44:15.259344Z",
     "shell.execute_reply.started": "2026-04-22T12:44:15.255746Z"
    }
   },
   "outputs": [],
   "source": [
    "startkapital = 100\n",
    "zinssatz = 0.03"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "dec6d28d-de9a-4596-9927-36043f2d0503",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:44:51.600287Z",
     "iopub.status.busy": "2026-04-22T12:44:51.599857Z",
     "iopub.status.idle": "2026-04-22T12:44:51.604789Z",
     "shell.execute_reply": "2026-04-22T12:44:51.603780Z",
     "shell.execute_reply.started": "2026-04-22T12:44:51.600256Z"
    }
   },
   "outputs": [],
   "source": [
    "anlagewert_1jahr = startkapital * (1 + zinssatz)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "b8c4bf8a-e086-49db-8415-7ef0b538254f",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:44:59.830346Z",
     "iopub.status.busy": "2026-04-22T12:44:59.829839Z",
     "iopub.status.idle": "2026-04-22T12:44:59.836096Z",
     "shell.execute_reply": "2026-04-22T12:44:59.834999Z",
     "shell.execute_reply.started": "2026-04-22T12:44:59.830309Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "103.0\n"
     ]
    }
   ],
   "source": [
    "print(anlagewert_1jahr)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "9f6f5df3-5e40-490e-bc53-e2727a2e4ac1",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:46:33.782861Z",
     "iopub.status.busy": "2026-04-22T12:46:33.782319Z",
     "iopub.status.idle": "2026-04-22T12:46:33.787786Z",
     "shell.execute_reply": "2026-04-22T12:46:33.786751Z",
     "shell.execute_reply.started": "2026-04-22T12:46:33.782826Z"
    }
   },
   "outputs": [],
   "source": [
    "anlagewert_10jahre = startkapital + startkapital * zinssatz * 10"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "33685294-9b6f-46ac-8e19-fa6af310c517",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:46:39.745118Z",
     "iopub.status.busy": "2026-04-22T12:46:39.744615Z",
     "iopub.status.idle": "2026-04-22T12:46:39.750791Z",
     "shell.execute_reply": "2026-04-22T12:46:39.749632Z",
     "shell.execute_reply.started": "2026-04-22T12:46:39.745082Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "130.0\n"
     ]
    }
   ],
   "source": [
    "print(anlagewert_10jahre)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "064761e0-0bf4-4c3c-b601-f395722a75fd",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:49:26.394532Z",
     "iopub.status.busy": "2026-04-22T12:49:26.394117Z",
     "iopub.status.idle": "2026-04-22T12:49:26.398774Z",
     "shell.execute_reply": "2026-04-22T12:49:26.397850Z",
     "shell.execute_reply.started": "2026-04-22T12:49:26.394499Z"
    }
   },
   "outputs": [],
   "source": [
    "anlagewert_15jahre = startkapital * (1 + zinssatz)**15"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "c8b6d5f5-000c-4a7c-a141-d66e9747d9da",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:49:32.747196Z",
     "iopub.status.busy": "2026-04-22T12:49:32.746672Z",
     "iopub.status.idle": "2026-04-22T12:49:32.752878Z",
     "shell.execute_reply": "2026-04-22T12:49:32.751809Z",
     "shell.execute_reply.started": "2026-04-22T12:49:32.747154Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "155.79674166007652\n"
     ]
    }
   ],
   "source": [
    "print(anlagewert_15jahre)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6d49af02-0811-4d46-8eb6-476832e4f614",
   "metadata": {},
   "source": [
    "# Klausuraufgabe"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "d5bb49c4-f827-40d9-9f52-795417cbce86",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:55:47.308955Z",
     "iopub.status.busy": "2026-04-22T12:55:47.308699Z",
     "iopub.status.idle": "2026-04-22T12:55:47.311511Z",
     "shell.execute_reply": "2026-04-22T12:55:47.311140Z",
     "shell.execute_reply.started": "2026-04-22T12:55:47.308937Z"
    }
   },
   "outputs": [],
   "source": [
    "breite = 4048\n",
    "hoehe = 3040\n",
    "\n",
    "pixel_pro_bild = breite * hoehe\n",
    "speicherplatz_pro_bild = 4 * pixel_pro_bild\n",
    "\n",
    "speicherplatz_insgesamt = 75 * speicherplatz_pro_bild"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "0d33d733-411c-4b94-99d8-79173ea0ab2c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-04-22T12:57:03.500463Z",
     "iopub.status.busy": "2026-04-22T12:57:03.500091Z",
     "iopub.status.idle": "2026-04-22T12:57:03.505356Z",
     "shell.execute_reply": "2026-04-22T12:57:03.504508Z",
     "shell.execute_reply.started": "2026-04-22T12:57:03.500432Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3.438234329223633\n"
     ]
    }
   ],
   "source": [
    "print(speicherplatz_insgesamt / 1024 / 1024 / 1024)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "08de1cd7-c060-4f9a-9008-f8ada52365d1",
   "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.12.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
