{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7f9c91e0",
   "metadata": {},
   "source": [
    "# 09-16 · not\n",
    "\n",
    "Praktyka do sekcji [„not — odwróć warunek”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "21c8c17d",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Opanowanie not to odwrócenie znaczenia logicznego."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "cb47f80c",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "88919a9a",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:07.555232Z",
     "iopub.status.busy": "2026-08-16T17:23:07.555114Z",
     "iopub.status.idle": "2026-08-16T17:23:07.573680Z",
     "shell.execute_reply": "2026-08-16T17:23:07.573095Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True\n"
     ]
    }
   ],
   "source": [
    "is_raining = False\n",
    "print(not is_raining)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ced5ba8a",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Zbuduj can_walk przez not i sprawdź podwójną not."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "5e1badf7",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:07.574628Z",
     "iopub.status.busy": "2026-08-16T17:23:07.574518Z",
     "iopub.status.idle": "2026-08-16T17:23:07.576714Z",
     "shell.execute_reply": "2026-08-16T17:23:07.576334Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True True\n"
     ]
    }
   ],
   "source": [
    "is_raining = False\n",
    "can_walk = not is_raining\n",
    "double_negative = not not True\n",
    "print(can_walk, double_negative)"
   ]
  }
 ],
 "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
}
