{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "26b4e712",
   "metadata": {},
   "source": [
    "# 09-15 · or\n",
    "\n",
    "Практика к разделу [«or — хотя бы одно»](../../site/chapters/glava-09/09-15-or.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c4393611",
   "metadata": {},
   "source": [
    "## Цель\n",
    "\n",
    "Освоить or — достаточно одного истинного условия."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "91c04873",
   "metadata": {},
   "source": [
    "## Рабочий пример"
   ]
  },
  {
   "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": [
    "## Задание ★ Базовая практика\n",
    "\n",
    "Постройте can_rest — True, если is_weekend ИЛИ is_holiday истинно."
   ]
  },
  {
   "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
}
