{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "afe1e0f1",
   "metadata": {},
   "source": [
    "# 13-11 · Rebinding vs mutation\n",
    "\n",
    "Praktyka do sekcji [„Argumenty zmienne i niezmienne”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0cb410ed",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Przewidywać, co jest widoczne z zewnątrz po rebinding i po mutation."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9f7ff326",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "76f33c25",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T18:53:53.460338Z",
     "iopub.status.busy": "2026-08-17T18:53:53.460228Z",
     "iopub.status.idle": "2026-08-17T18:53:53.476994Z",
     "shell.execute_reply": "2026-08-17T18:53:53.476434Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "10 11 ['Git', 'Python']\n"
     ]
    }
   ],
   "source": [
    "def add_one(number):\n",
    "    number += 1\n",
    "    return number\n",
    "\n",
    "x = 10\n",
    "y = add_one(x)\n",
    "\n",
    "def add_item(items):\n",
    "    items.append(\"Python\")\n",
    "\n",
    "skills = [\"Git\"]\n",
    "add_item(skills)\n",
    "\n",
    "print(x, y, skills)"
   ]
  }
 ],
 "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
}
