{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b684f283",
   "metadata": {},
   "source": [
    "#09-12 · elif-lestnitsa\n",
    "\n",
    "Praktyka do sekcji [„elif - kilka opcji”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0666eea5",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zbuduj łańcuch elif i upewnij się, że kolejność warunków jest ważna."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ae070ba5",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "50716918",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:04.255830Z",
     "iopub.status.busy": "2026-08-16T17:23:04.255727Z",
     "iopub.status.idle": "2026-08-16T17:23:04.281533Z",
     "shell.execute_reply": "2026-08-16T17:23:04.281147Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "мороз\n"
     ]
    }
   ],
   "source": [
    "temperature = -5\n",
    "if temperature < 0:\n",
    "    result = \"мороз\"\n",
    "elif temperature < 15:\n",
    "    result = \"прохладно\"\n",
    "elif temperature < 25:\n",
    "    result = \"комфортно\"\n",
    "else:\n",
    "    result = \"жарко\"\n",
    "print(result)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c6503675",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Biegnij tą samą drabiną przez temperature=10 i przewiduj wynik z wyprzedzeniem."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "3b349e58",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T17:23:04.282756Z",
     "iopub.status.busy": "2026-08-16T17:23:04.282587Z",
     "iopub.status.idle": "2026-08-16T17:23:04.284986Z",
     "shell.execute_reply": "2026-08-16T17:23:04.284650Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "прохладно\n"
     ]
    }
   ],
   "source": [
    "temperature = 10\n",
    "if temperature < 0:\n",
    "    result = \"мороз\"\n",
    "elif temperature < 15:\n",
    "    result = \"прохладно\"\n",
    "elif temperature < 25:\n",
    "    result = \"комфортно\"\n",
    "else:\n",
    "    result = \"жарко\"\n",
    "print(result)"
   ]
  }
 ],
 "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
}
