{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "6a511beb",
   "metadata": {},
   "source": [
    "# 07-16 · System tekstu i współrzędnych\n",
    "\n",
    "Praktyka do sekcji [„Tekst i układ współrzędnych”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "98c812c3",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Zbieraj goto(), dot() i write() w podpisanym harmonogramie."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "80a02070",
   "metadata": {},
   "source": [
    "## Ustawienie (wykonać raz)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "034ff84d",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:49.184879Z",
     "iopub.status.busy": "2026-08-16T15:16:49.184765Z",
     "iopub.status.idle": "2026-08-16T15:16:49.356956Z",
     "shell.execute_reply": "2026-08-16T15:16:49.356467Z"
    }
   },
   "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": "501c1027",
   "metadata": {},
   "source": [
    "## Sprawa robocza\n",
    "\n",
    "Jeden punkt znakowy na osi."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "3d8b0807",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:49.358081Z",
     "iopub.status.busy": "2026-08-16T15:16:49.357969Z",
     "iopub.status.idle": "2026-08-16T15:16:49.540848Z",
     "shell.execute_reply": "2026-08-16T15:16:49.540268Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.hideturtle()\n",
    "artist.penup()\n",
    "artist.goto(50, 0)\n",
    "artist.dot(6, \"#5B24F9\")\n",
    "artist.goto(50, -20)\n",
    "artist.write(\"50\", align=\"center\", font=(\"Arial\", 11, \"normal\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "6a7ecb3b",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Umieść trzy oznaczone kropki na osiach X: -50, 0 i 50 z podpisami liczbowymi pod każdą z nich."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "4e850ae9",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:49.541932Z",
     "iopub.status.busy": "2026-08-16T15:16:49.541824Z",
     "iopub.status.idle": "2026-08-16T15:16:49.990865Z",
     "shell.execute_reply": "2026-08-16T15:16:49.990245Z"
    }
   },
   "outputs": [],
   "source": [
    "artist.reset()\n",
    "artist.hideturtle()\n",
    "artist.penup()\n",
    "for value in [-50, 0, 50]:\n",
    "    artist.goto(value, 0)\n",
    "    artist.dot(6, \"#5B24F9\")\n",
    "    artist.goto(value, -20)\n",
    "    artist.write(str(value), align=\"center\", font=(\"Arial\", 11, \"normal\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8860ccc2",
   "metadata": {},
   "source": [
    "## Ukończenie (wykonaj raz, na samym końcu)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "4c646339",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T15:16:49.992153Z",
     "iopub.status.busy": "2026-08-16T15:16:49.992013Z",
     "iopub.status.idle": "2026-08-16T15:16:49.995426Z",
     "shell.execute_reply": "2026-08-16T15:16:49.994905Z"
    }
   },
   "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
}
