{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "c3f3e6b3",
   "metadata": {},
   "source": [
    "# 12-13 · Notes\n",
    "\n",
    "Praktyka do sekcji [„Projekt: Notatnik”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7fcfa002",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Dict jako książkę kontaktową: dodaj, edytuj, usuń."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ff39512d",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "ef1f474a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T16:38:39.574237Z",
     "iopub.status.busy": "2026-08-17T16:38:39.574132Z",
     "iopub.status.idle": "2026-08-17T16:38:39.592990Z",
     "shell.execute_reply": "2026-08-17T16:38:39.592534Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'Anna': '+48 111 000 000', 'Maria': '+48 333 333 333'}\n",
      "Контактов: 2\n"
     ]
    }
   ],
   "source": [
    "contacts = {\n",
    "    \"Anna\": \"+48 111 111 111\",\n",
    "    \"Bob\": \"+48 222 222 222\",\n",
    "}\n",
    "\n",
    "contacts[\"Maria\"] = \"+48 333 333 333\"\n",
    "contacts[\"Anna\"] = \"+48 111 000 000\"\n",
    "del contacts[\"Bob\"]\n",
    "\n",
    "kolichestvo = len(contacts)\n",
    "print(contacts)\n",
    "print(\"Контактов:\", kolichestvo)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Cartesian Python 3.14",
   "language": "python",
   "name": "cartesian-python314"
  },
  "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.14.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
