{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "a0a7e388",
   "metadata": {},
   "source": [
    "# 04-08 · Operatorzy arytmetyczne\n",
    "\n",
    "Praktyka do sekcji [„Operatory arytmetyki”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "763cd1aa",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Ćwicz z pełnym zestawem operatorów arytmetycznych."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "50973e96",
   "metadata": {},
   "source": [
    "## Sprawa robocza"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e59e1cd1",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:20.836246Z",
     "iopub.status.busy": "2026-08-16T10:03:20.836142Z",
     "iopub.status.idle": "2026-08-16T10:03:20.854096Z",
     "shell.execute_reply": "2026-08-16T10:03:20.853304Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "10\n",
      "4\n",
      "21\n",
      "2.3333333333333335\n"
     ]
    }
   ],
   "source": [
    "print(7 + 3)\n",
    "print(7 - 3)\n",
    "print(7 * 3)\n",
    "print(7 / 3)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "db56302d",
   "metadata": {},
   "source": [
    "## Eksperyment 1\n",
    "\n",
    "Przewidź wynik każdego rzędu przed startem."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "707b70ca",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:20.855507Z",
     "iopub.status.busy": "2026-08-16T10:03:20.855346Z",
     "iopub.status.idle": "2026-08-16T10:03:20.858005Z",
     "shell.execute_reply": "2026-08-16T10:03:20.857495Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2\n",
      "1\n",
      "343\n"
     ]
    }
   ],
   "source": [
    "print(7 // 3)\n",
    "print(7 % 3)\n",
    "print(7 ** 3)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "27a32a78",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Oblicz 15% zniżki od 1000, używając *, / i -."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "2f448f0e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:20.859202Z",
     "iopub.status.busy": "2026-08-16T10:03:20.859061Z",
     "iopub.status.idle": "2026-08-16T10:03:20.865003Z",
     "shell.execute_reply": "2026-08-16T10:03:20.864211Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "850.0\n"
     ]
    }
   ],
   "source": [
    "price = 1000\n",
    "discount_percent = 15\n",
    "discount_amount = price * discount_percent / 100\n",
    "final_price = price - discount_amount\n",
    "print(final_price)"
   ]
  }
 ],
 "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
}
