{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "72382e58",
   "metadata": {},
   "source": [
    "# 05-09 · Operatorzy unary\n",
    "\n",
    "Praktyka do sekcji [„Operatory unarne”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "93bdf9f8",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zrozumieć, dlaczego -2 ** 2 nie równa się (-2) ** 2."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9c1da026",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "255ada78",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:50.393188Z",
     "iopub.status.busy": "2026-08-16T12:02:50.393075Z",
     "iopub.status.idle": "2026-08-16T12:02:50.417527Z",
     "shell.execute_reply": "2026-08-16T12:02:50.417101Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-4\n",
      "4\n"
     ]
    }
   ],
   "source": [
    "print(-2 ** 2)\n",
    "print((-2) ** 2)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3104a7b0",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Wycofanie się `-3 ** 2` oraz `(-3) ** 2` przez spację jednym print() — liczby muszą być różne."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f7a73017",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:50.418892Z",
     "iopub.status.busy": "2026-08-16T12:02:50.418712Z",
     "iopub.status.idle": "2026-08-16T12:02:50.420974Z",
     "shell.execute_reply": "2026-08-16T12:02:50.420626Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-9 9\n"
     ]
    }
   ],
   "source": [
    "print(-3 ** 2, (-3) ** 2)"
   ]
  }
 ],
 "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
}
