{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "6d814862",
   "metadata": {},
   "source": [
    "# 11-12 · Zmiana lista\n",
    "\n",
    "Praktyka do sekcji [„Changing lista”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "728e95b4",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zmienić element listy według indeksu."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d5bc5885",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b3861f49",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T14:44:34.424052Z",
     "iopub.status.busy": "2026-08-17T14:44:34.423940Z",
     "iopub.status.idle": "2026-08-17T14:44:34.444789Z",
     "shell.execute_reply": "2026-08-17T14:44:34.444338Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[10, 999, 30]\n"
     ]
    }
   ],
   "source": [
    "numbers = [10, 20, 30]\n",
    "numbers[1] = 999\n",
    "print(numbers)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8adaf38c",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "W liście temperatur w trzeci dzień (indeks 2) wkradł się błąd pomiaru — powinno być 23, a nie 19. Popraw go na miejscu."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "bc9b1d35",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T14:44:34.446052Z",
     "iopub.status.busy": "2026-08-17T14:44:34.445897Z",
     "iopub.status.idle": "2026-08-17T14:44:34.448654Z",
     "shell.execute_reply": "2026-08-17T14:44:34.448182Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[18, 21, 23, 25, 17]\n"
     ]
    }
   ],
   "source": [
    "temperatures = [18, 21, 19, 25, 17]\n",
    "temperatures[2] = 23\n",
    "print(temperatures)"
   ]
  }
 ],
 "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
}
