Last active
November 1, 2025 00:37
-
-
Save dudung/062f36bdca281137e12934d1041631a4 to your computer and use it in GitHub Desktop.
a sk5002 assignment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "cells": [ | |
| { | |
| "cell_type": "markdown", | |
| "id": "dc06e253-f1ec-421b-9d8a-279f7d65b5c9", | |
| "metadata": {}, | |
| "source": [ | |
| "# midterm sk5002" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "dfdfdb86-a493-4c0f-8c45-1e31898457da", | |
| "metadata": {}, | |
| "source": [ | |
| "### instruction\n", | |
| "1. Download this notebook from GitHub Gist.\n", | |
| "2. Rename it to e.g. `20025000.ipynb`, where `20025000.ipynb` is your student ID.\n", | |
| "3. Upload it later to GitHub Gist after completing all tasks provided below.\n", | |
| "4. Record link to the uploaded notebook on GitHub Gist.\n", | |
| "5. Report the link on Edunex (and GitHub Issues in case of emergency)." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "3265d3d3-3675-4f9a-bde2-ffec6ea67d7c", | |
| "metadata": {}, | |
| "source": [ | |
| "## part-1 (point 20)\n", | |
| "+ Read [Back to basics — Jupyter notebooks](https://medium.com/p/dfcdc19c54bc).\n", | |
| "+ Get familiar with the two modes, Edit and Command.\n", | |
| "+ Write short answer indicating that you are already familiar with the modes.\n", | |
| "\n", | |
| "### answer\n", | |
| ".." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "26541c5d-9d00-4131-be8e-c8c2020f13c7", | |
| "metadata": {}, | |
| "source": [ | |
| "## part-2 (point 20)\n", | |
| "+ Read [The Ultimate Markdown Guide (for Jupyter Notebook)](https://medium.com/p/d5e5abf728fd)\n", | |
| "+ Get familiar with Markdown syntax.\n", | |
| "+ Write short answer indicating that you are already familiar with the syntax.\n", | |
| "\n", | |
| "### answer\n", | |
| ".." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "1f6b700b-ed7f-4466-b9a6-ab2a53594f2e", | |
| "metadata": {}, | |
| "source": [ | |
| "## part-3 (point 20)\n", | |
| "+ Explain steps how to find Python installer, download it, and then install it.\n", | |
| "+ Write the answer below and add as many steps required.\n", | |
| "\n", | |
| "### answer\n", | |
| "1. ..\n", | |
| "2. .." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "b57b1336-fd55-4e36-a71a-f381f311c3a6", | |
| "metadata": {}, | |
| "source": [ | |
| "## part-4 (point 20)\n", | |
| "+ Explain what is the purpose of using virtual environment in Python.\n", | |
| "+ Write the answer below in 1-2 paragraphs using items.\n", | |
| "\n", | |
| "### answer\n", | |
| "+ ..\n", | |
| "+ .." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "a6653336-cb88-4efe-8a3c-78a392100d9b", | |
| "metadata": {}, | |
| "source": [ | |
| "## part-5 (point 20)\n", | |
| "+ Correct following code.\n", | |
| "+ Correct only one part in each correction.\n", | |
| "+ Give short explanation what is corrected." | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "id": "82a2d8dc-d2c8-4200-833b-6c72d761f219", | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [ | |
| "import matplotlib.pyplot as plt\n", | |
| "\n", | |
| "x = [range(11)]\n", | |
| "y = [25 - (5 - i)**2 for i in x\n", | |
| "\n", | |
| "plt.plot(x, y, 'r:o)\n", | |
| "plt.xlabel('x')\n", | |
| "plt.ylable('y')\n", | |
| "plt.grid()\n", | |
| "plt.sohw()" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "51d877f2-838e-47f5-87ac-ccaddc91d084", | |
| "metadata": {}, | |
| "source": [ | |
| "### correction 1\n", | |
| "+ .. (short explanation)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "id": "75c632ef-7b2b-42a3-ba4c-4c5b82fb1026", | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [ | |
| "# the code after correction 1" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "ee9abd16-86dc-44fd-9eee-e669a97cd7eb", | |
| "metadata": {}, | |
| "source": [ | |
| "### correction 2\n", | |
| "+ .. (short explanation)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "id": "81c8cb82-87b8-4978-93af-2e686f904b97", | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [ | |
| "# the code after correction 2" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "2f2c916c-9687-4e7d-afd9-02a6ffad1748", | |
| "metadata": {}, | |
| "source": [ | |
| ".." | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "482f4522-be9e-4706-8b58-0e1b7a8318ae", | |
| "metadata": {}, | |
| "source": [ | |
| "### corection n\n", | |
| "+ .. (short explanation)" | |
| ] | |
| }, | |
| { | |
| "cell_type": "code", | |
| "execution_count": null, | |
| "id": "3677fe04-646f-4583-8be9-6a92fda69a64", | |
| "metadata": {}, | |
| "outputs": [], | |
| "source": [ | |
| "# the code after correction n" | |
| ] | |
| }, | |
| { | |
| "cell_type": "markdown", | |
| "id": "2a94f756-2305-462b-a06c-e3fe0df7e866", | |
| "metadata": {}, | |
| "source": [ | |
| "### summaries\n", | |
| ".. (write explanation about all performed corrections to make the program working)" | |
| ] | |
| } | |
| ], | |
| "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.9.6" | |
| } | |
| }, | |
| "nbformat": 4, | |
| "nbformat_minor": 5 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment