{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "11045ad4",
   "metadata": {},
   "source": [
    "# 07-14 · circle(steps=...)\n",
    "\n",
    "Praktyka do sekcji [„circle(steps=...) — z okręgu do wielokąta”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6178bfff",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zamień koło w wielokąt przez steps."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f40029b7",
   "metadata": {},
   "source": [
    "## Ustawienie (wykonać raz)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "29e1bcab",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:45.666104Z",
     "iopub.status.busy": "2026-08-16T15:16:45.666002Z",
     "iopub.status.idle": "2026-08-16T15:16:45.838734Z",
     "shell.execute_reply": "2026-08-16T15:16:45.838077Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Окно Turtle готово.\n"
     ]
    }
   ],
   "source": [
    "import turtle\n",
    "\n",
    "screen = turtle.Screen()\n",
    "artist = turtle.Turtle()\n",
    "artist.pensize(3)\n",
    "artist.pencolor(\"#5B24F9\")\n",
    "print(\"Окно Turtle готово.\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4fba4290",
   "metadata": {},
   "source": [
    "## Sprawa robocza\n",
    "\n",
    "Pentagon do circle(steps=5)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "18271311",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:45.840192Z",
     "iopub.status.busy": "2026-08-16T15:16:45.840022Z",
     "iopub.status.idle": "2026-08-16T15:16:46.480755Z",
     "shell.execute_reply": "2026-08-16T15:16:46.480320Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.circle(80, steps=5)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "08f308a1",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Narysuj ośmiokąt o promieniu 70, używając circle() z steps."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "8412439d",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:46.482034Z",
     "iopub.status.busy": "2026-08-16T15:16:46.481928Z",
     "iopub.status.idle": "2026-08-16T15:16:47.216660Z",
     "shell.execute_reply": "2026-08-16T15:16:47.216024Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.circle(70, steps=8)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "dfcb7d03",
   "metadata": {},
   "source": [
    "## Ukończenie (wykonaj raz, na samym końcu)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "0debcb8e",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:47.217866Z",
     "iopub.status.busy": "2026-08-16T15:16:47.217757Z",
     "iopub.status.idle": "2026-08-16T15:16:47.220647Z",
     "shell.execute_reply": "2026-08-16T15:16:47.220218Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Окно Turtle закрыто.\n"
     ]
    }
   ],
   "source": [
    "screen.bye()\n",
    "print(\"Окно Turtle закрыто.\")"
   ]
  }
 ],
 "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
}
