From 68f6e4fce0651ac71f93bffd2a6ce4fb9046a722 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D0=B5=D0=B9=20=D0=A1=D1=8B=D1=80?= =?UTF-8?q?=D1=87=D0=B8=D0=BD?= Date: Mon, 17 Mar 2025 10:50:48 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D1=88=D1=82=D1=83=D1=87=D0=B5=D1=87=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- week2_analysis.ipynb | 92 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+), 1 deletion(-) create mode 100644 week2_analysis.ipynb diff --git a/.gitignore b/.gitignore index fb9df04..1b06407 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -/.venv \ No newline at end of file +/.venv +/.ipynb_checkpoints \ No newline at end of file diff --git a/week2_analysis.ipynb b/week2_analysis.ipynb new file mode 100644 index 0000000..f77b53f --- /dev/null +++ b/week2_analysis.ipynb @@ -0,0 +1,92 @@ +{ + "cells": [ + { + "cell_type": "markdown", + "id": "c033731f-63ff-45a1-9466-15886f15ae09", + "metadata": {}, + "source": [ + "Тестовый код" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "bf32d476-0486-4477-aab4-e86965882fdf", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "3\n" + ] + } + ], + "source": [ + "test = 1\n", + "test2 = 2\n", + "print(test + test2)" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "286caee8-913b-4fa5-ae6e-5be0ba523cb7", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Hello Sailor!\n" + ] + } + ], + "source": [ + "import random\n", + "\n", + "aa = \"Hello \"\n", + "bb = \"World!\"\n", + "cc = \"Sailor!\"\n", + "\n", + "r = random.randint(1, 10)\n", + "\n", + "if (r > 5):\n", + " zz = aa + bb\n", + "else:\n", + " zz = aa + cc\n", + "\n", + "print(zz)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "6e2f0daf-10fe-4892-8438-7a10f5cc05bd", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3 (ipykernel)", + "language": "python", + "name": "python3" + }, + "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.13.2" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +}