{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "6c513c08",
   "metadata": {},
   "source": [
    "# 13-01 · Pierwsza funkcja\n",
    "\n",
    "Praktyka do sekcji [„Prawdziwa Automatyzacja”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ce6700b0",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zdefiniuj i wywołaj pierwszą funkcję."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f3bd0538",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "f6d0c94e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T18:53:35.893385Z",
     "iopub.status.busy": "2026-08-17T18:53:35.893151Z",
     "iopub.status.idle": "2026-08-17T18:53:35.908995Z",
     "shell.execute_reply": "2026-08-17T18:53:35.908432Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Привет, Python!\n",
      "Привет, Python!\n",
      "Привет, Python!\n"
     ]
    }
   ],
   "source": [
    "def privetstvie():\n",
    "    print(\"Привет, Python!\")\n",
    "\n",
    "privetstvie()\n",
    "privetstvie()\n",
    "privetstvie()"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "78354b00",
   "metadata": {},
   "source": [
    "## Eksperyment 1\n",
    "\n",
    "Określ funkcję, nie wywołując jej — upewnij się, że nic nie jest wyświetlane."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "93cbae0e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T18:53:35.910940Z",
     "iopub.status.busy": "2026-08-17T18:53:35.910626Z",
     "iopub.status.idle": "2026-08-17T18:53:35.914095Z",
     "shell.execute_reply": "2026-08-17T18:53:35.913621Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Программа выполнилась, а функция — нет.\n"
     ]
    }
   ],
   "source": [
    "def nichego_ne_delaet():\n",
    "    print(\"Меня никто не вызвал!\")\n",
    "\n",
    "print(\"Программа выполнилась, а функция — нет.\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fb6a3eb7",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Napisz funkcję `poprisdachu()`to oznacza krótkie pożegnanie i przywołaj go trzy razy."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "c5d56891",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-17T18:53:35.916010Z",
     "iopub.status.busy": "2026-08-17T18:53:35.915837Z",
     "iopub.status.idle": "2026-08-17T18:53:35.918995Z",
     "shell.execute_reply": "2026-08-17T18:53:35.918397Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "До встречи!\n",
      "До встречи!\n",
      "До встречи!\n"
     ]
    }
   ],
   "source": [
    "def poproshchatsya():\n",
    "    print(\"До встречи!\")\n",
    "\n",
    "poproshchatsya()\n",
    "poproshchatsya()\n",
    "poproshchatsya()"
   ]
  }
 ],
 "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
}
