{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "5bbe2ca1",
   "metadata": {},
   "source": [
    "# 04-11 · Степени, pow() и abs()\n",
    "\n",
    "Практика к разделу [«Степени и abs()»](../../site/chapters/glava-04/04-11-stepeni.html)."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ec92ecff",
   "metadata": {},
   "source": [
    "## Цель\n",
    "\n",
    "Освоить возведение в степень и модуль числа."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ea30a0d1",
   "metadata": {},
   "source": [
    "## Рабочий пример"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "a830eb3e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:34.226978Z",
     "iopub.status.busy": "2026-08-16T10:03:34.226820Z",
     "iopub.status.idle": "2026-08-16T10:03:34.245863Z",
     "shell.execute_reply": "2026-08-16T10:03:34.245410Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1024\n",
      "1024\n"
     ]
    }
   ],
   "source": [
    "print(2 ** 10)\n",
    "print(pow(2, 10))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2c03cfa6",
   "metadata": {},
   "source": [
    "## Эксперимент 1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "d6a2f517",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:34.247098Z",
     "iopub.status.busy": "2026-08-16T10:03:34.246936Z",
     "iopub.status.idle": "2026-08-16T10:03:34.249113Z",
     "shell.execute_reply": "2026-08-16T10:03:34.248705Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "7\n",
      "7\n"
     ]
    }
   ],
   "source": [
    "print(abs(-7))\n",
    "print(abs(7))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8243eae4",
   "metadata": {},
   "source": [
    "## Задание ★ Базовая практика\n",
    "\n",
    "Посчитайте площадь квадрата со стороной 9, используя **."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "2a9ca8fe",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T10:03:34.250007Z",
     "iopub.status.busy": "2026-08-16T10:03:34.249901Z",
     "iopub.status.idle": "2026-08-16T10:03:34.251915Z",
     "shell.execute_reply": "2026-08-16T10:03:34.251510Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "81\n"
     ]
    }
   ],
   "source": [
    "side = 9\n",
    "area = side ** 2\n",
    "print(area)"
   ]
  }
 ],
 "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
}
