{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "fc26da84",
   "metadata": {},
   "source": [
    "# 06-19 · Przewidzieć kurs i współrzędną\n",
    "\n",
    "Praktyka do sekcji [„Kierunek i kąt”"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "fbaa77e3",
   "metadata": {},
   "source": [
    "## Cel\n",
    "\n",
    "Nauczyć się przewidywać kurs i współrzędną żółwia na papierze, bez uruchamiania okna."
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c061ebad",
   "metadata": {},
   "source": [
    "## Sprawa robocza\n",
    "\n",
    "Turtle zaczyna na (0, 0), kurs 0° (wschód). Drużyna forward(100) przesuwa go na (100, 0), trasa pozostaje 0°."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "e0d563f0",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T13:58:43.338600Z",
     "iopub.status.busy": "2026-08-16T13:58:43.338498Z",
     "iopub.status.idle": "2026-08-16T13:58:43.365473Z",
     "shell.execute_reply": "2026-08-16T13:58:43.364957Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0 (100, 0)\n"
     ]
    }
   ],
   "source": [
    "start = (0, 0)\n",
    "kurs = 0\n",
    "# forward(100) przy kursie 0° (wschód) dodaje 100 do x\n",
    "finish = (start[0] + 100, start[1])\n",
    "print(kurs, finish)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "434a92e5",
   "metadata": {},
   "source": [
    "## Podstawowa praktyka zadań ★\n",
    "\n",
    "Żółw zaczyna na kursie (0, 0), kurs 0°. Wykonuje się polecenia: forward(120), left(90), forward(80), right(90) forward(50). Obliczaj końcowy kurs i współrzędne ręcznie i wypisuj je w jednym print() jako `курс координаты` (na przykład: `0 (170, 80)`)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "998528e7",
   "metadata": {
    "execution": {
     "iopub.execute_input": "2026-08-16T13:58:43.366432Z",
     "iopub.status.busy": "2026-08-16T13:58:43.366305Z",
     "iopub.status.idle": "2026-08-16T13:58:43.368551Z",
     "shell.execute_reply": "2026-08-16T13:58:43.368140Z"
    }
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "0 (170, 80)\n"
     ]
    }
   ],
   "source": [
    "itogovyj_kurs = 0\n",
    "itogovaya_koordinata = (170, 80)\n",
    "print(itogovyj_kurs, itogovaya_koordinata)"
   ]
  }
 ],
 "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
}
