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 +}