Updated M module1.ipynb

This commit is contained in:
Yavuz Sava 2025-02-23 15:38:12 +03:00
parent e204462b08
commit 7702466add

View File

@ -275,11 +275,7 @@
}, },
{ {
"cell_type": "markdown", "cell_type": "markdown",
"metadata": { "metadata": {},
"jupyter": {
"source_hidden": true
}
},
"source": [ "source": [
"# Practical Application of diff and patch\n", "# Practical Application of diff and patch\n",
"\n", "\n",
@ -301,6 +297,7 @@
"\n", "\n",
"## **File with code**\n", "## **File with code**\n",
"\n", "\n",
"```\n",
"#!/usr/bin/env python3\n", "#!/usr/bin/env python3\n",
"\n", "\n",
"import shutil\n", "import shutil\n",
@ -337,10 +334,6 @@
"\n", "\n",
"return 0\n", "return 0\n",
"\n", "\n",
"\n",
"\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py \n", "./disk\\_usage\\_fixed.py \n",
"\n", "\n",
"#this throws an error\n", "#this throws an error\n",
@ -360,7 +353,7 @@
"## File with code\n", "## File with code\n",
"\n", "\n",
"The instructor adds import sys at the beginning, then change return 1 to sys.exit(1) and return 0 to sys.exit(0).\n", "The instructor adds import sys at the beginning, then change return 1 to sys.exit(1) and return 0 to sys.exit(0).\n",
"\n", "```\n",
"#!/usr/bin/env python3\n", "#!/usr/bin/env python3\n",
"\n", "\n",
"import shutil\n", "import shutil\n",
@ -399,8 +392,6 @@
"\n", "\n",
"sys.exit(0)\n", "sys.exit(0)\n",
"\n", "\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py\n", "./disk\\_usage\\_fixed.py\n",
"```\n", "```\n",
"\n", "\n",
@ -412,7 +403,7 @@
"## File with code\n", "## File with code\n",
"\n", "\n",
"Instructor changed change check\\_disk\\_usage(\"/\", 2\\*2\\*\\*30, 10) in previous file to check\\_disk\\_usage(\"/\", 2, 10).\n", "Instructor changed change check\\_disk\\_usage(\"/\", 2\\*2\\*\\*30, 10) in previous file to check\\_disk\\_usage(\"/\", 2, 10).\n",
"\n", "```\n",
"#!/usr/bin/env python3\n", "#!/usr/bin/env python3\n",
"\n", "\n",
"import shutil\n", "import shutil\n",
@ -451,8 +442,6 @@
"\n", "\n",
"sys.exit(0)\n", "sys.exit(0)\n",
"\n", "\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py \n", "./disk\\_usage\\_fixed.py \n",
"```\n", "```\n",
"\n", "\n",