{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b16f37f4",
   "metadata": {},
   "source": [
    "# 09-07 · Algorytmy i polecenia\n",
    "\n",
    "Praktyka do sekcji [„Algorytmy i polecenia”](/pl/chapters/rozdzial-09/09-07-algoritmy-i-komandy.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ecd18938",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Śledzenie sekwencyjnego wykonywania poleceń i przewidywanie wartości zmiennych."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e4846e46",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "bccc129e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:00.201416Z",
     "iopub.status.busy": "2026-08-16T17:23:00.201286Z",
     "iopub.status.idle": "2026-08-16T17:23:00.221819Z",
     "shell.execute_reply": "2026-08-16T17:23:00.221285Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Старт\n",
      "5\n",
      "Конец\n"
     ]
    }
   ],
   "source": [
    "print(\"Старт\")\n",
    "x = 5\n",
    "print(x)\n",
    "print(\"Конец\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8da0d520",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Śledź program ręcznie (nie uruchamiając), przewidź wartości `b` oraz `c`, potem się sprawdz."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "494df16e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:00.222812Z",
     "iopub.status.busy": "2026-08-16T17:23:00.222703Z",
     "iopub.status.idle": "2026-08-16T17:23:00.225382Z",
     "shell.execute_reply": "2026-08-16T17:23:00.224742Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "8 16\n"
     ]
    }
   ],
   "source": [
    "a = 5\n",
    "b = a + 3\n",
    "c = b * 2\n",
    "print(b, c)"
   ]
  }
 ],
 "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
}
