{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2574ad43",
   "metadata": {},
   "source": [
    "# 05-12 · Tłumaczenie formuł: matematyka → Python\n",
    "\n",
    "Praktyka do sekcji [„Tłumaczenie wzorów: matematyka → Python”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f95c49e4",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Przekształcić wzór x² + 2x + 1 z zapisu matematycznego do Python."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d497e9ee",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "aec93496",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:52.768327Z",
     "iopub.status.busy": "2026-08-16T12:02:52.768209Z",
     "iopub.status.idle": "2026-08-16T12:02:52.789638Z",
     "shell.execute_reply": "2026-08-16T12:02:52.789207Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "16\n"
     ]
    }
   ],
   "source": [
    "x = 3\n",
    "print(x ** 2 + 2 * x + 1)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "bd79368a",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Przelicz wzór x² + 2x + 1 na Python dla x = 5 i wyjrzyj wynik (oczekiwany na 36)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "4de7a1a1",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T12:02:52.790610Z",
     "iopub.status.busy": "2026-08-16T12:02:52.790495Z",
     "iopub.status.idle": "2026-08-16T12:02:52.792843Z",
     "shell.execute_reply": "2026-08-16T12:02:52.792419Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "36\n"
     ]
    }
   ],
   "source": [
    "x = 5\n",
    "rezultat = x ** 2 + 2 * x + 1\n",
    "print(rezultat)"
   ]
  }
 ],
 "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
}
