{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "813fd96f",
   "metadata": {},
   "source": [
    "# 13-21 · Potok funkcji\n",
    "\n",
    "Praktyka do sekcji [„Funkcjonuje jako potok”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "88d64fac",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zbuduj rurę przetwarzania: wynik jednej funkcji staje się wejściem następnej."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8eab05ef",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "08ca58c3",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T18:54:12.984448Z",
     "iopub.status.busy": "2026-08-17T18:54:12.984326Z",
     "iopub.status.idle": "2026-08-17T18:54:13.000841Z",
     "shell.execute_reply": "2026-08-17T18:54:13.000368Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "3\n"
     ]
    }
   ],
   "source": [
    "def normalize_text(text):\n",
    "    return text.lower()\n",
    "\n",
    "def split_words(text):\n",
    "    return text.split()\n",
    "\n",
    "def count_words(words):\n",
    "    return len(words)\n",
    "\n",
    "pipeline_result = count_words(split_words(normalize_text(\"Python IS Fun\")))\n",
    "print(pipeline_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
}
