{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "a622de92",
   "metadata": {},
   "source": [
    "# 10-09 · range() szczegóły\n",
    "\n",
    "Praktyka do rozdziału [„range() szczegółowo”](/pl/chapters/rozdzial-10/10-09-range-podrobno.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "868236b7",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Opanować wszystkie trzy sygnatury range() oraz krok ujemny."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5fb7ad9d",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "67da2f39",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T20:12:47.668258Z",
     "iopub.status.busy": "2026-08-16T20:12:47.668146Z",
     "iopub.status.idle": "2026-08-16T20:12:47.693758Z",
     "shell.execute_reply": "2026-08-16T20:12:47.693287Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0\n",
      "2\n",
      "4\n",
      "6\n",
      "8\n"
     ]
    }
   ],
   "source": [
    "for n in range(0, 10, 2):\n",
    "    print(n)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "abec080d",
   "metadata": {},
   "source": [
    "## Eksperyment 1 – Krok Negatywny"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "0e51f8e9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T20:12:47.695054Z",
     "iopub.status.busy": "2026-08-16T20:12:47.694938Z",
     "iopub.status.idle": "2026-08-16T20:12:47.697176Z",
     "shell.execute_reply": "2026-08-16T20:12:47.696699Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "10\n",
      "8\n",
      "6\n",
      "4\n",
      "2\n"
     ]
    }
   ],
   "source": [
    "for n in range(10, 0, -2):\n",
    "    print(n)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1cf4a98a",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Zbierz do lista `otschet` liczba od 100 do 50 włącznie, w krokach po -5 (odliczanie)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "2bd44fe2",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T20:12:47.698069Z",
     "iopub.status.busy": "2026-08-16T20:12:47.697967Z",
     "iopub.status.idle": "2026-08-16T20:12:47.700254Z",
     "shell.execute_reply": "2026-08-16T20:12:47.699861Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50]\n"
     ]
    }
   ],
   "source": [
    "otschet = []\n",
    "for n in range(100, 45, -5):\n",
    "    otschet.append(n)\n",
    "print(otschet)"
   ]
  }
 ],
 "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
}
