{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "26b4e712",
   "metadata": {},
   "source": [
    "# 09-15 · or\n",
    "\n",
    "Praktyka do sekcji [„or — co najmniej jeden”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c4393611",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Opanowanie or wystarczy na jeden prawdziwy warunek."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "91c04873",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "a158164c",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:06.691174Z",
     "iopub.status.busy": "2026-08-16T17:23:06.691038Z",
     "iopub.status.idle": "2026-08-16T17:23:06.709698Z",
     "shell.execute_reply": "2026-08-16T17:23:06.709267Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True\n"
     ]
    }
   ],
   "source": [
    "is_student = False\n",
    "is_senior = True\n",
    "print(is_student or is_senior)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fa087342",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Zbuduj can_rest—True jeśli is_weekend LUB is_holiday prawdziwe."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "aed4d3b3",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:06.710853Z",
     "iopub.status.busy": "2026-08-16T17:23:06.710686Z",
     "iopub.status.idle": "2026-08-16T17:23:06.713525Z",
     "shell.execute_reply": "2026-08-16T17:23:06.713018Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "True\n"
     ]
    }
   ],
   "source": [
    "is_weekend = False\n",
    "is_holiday = True\n",
    "can_rest = is_weekend or is_holiday\n",
    "print(can_rest)"
   ]
  }
 ],
 "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
}
