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",
"metadata": {
"jupyter": {
"source_hidden": true
}
},
"metadata": {},
"source": [
"# Practical Application of diff and patch\n",
"\n",
@ -301,6 +297,7 @@
"\n",
"## **File with code**\n",
"\n",
"```\n",
"#!/usr/bin/env python3\n",
"\n",
"import shutil\n",
@ -337,10 +334,6 @@
"\n",
"return 0\n",
"\n",
"\n",
"\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py \n",
"\n",
"#this throws an error\n",
@ -360,7 +353,7 @@
"## File with code\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",
"\n",
"```\n",
"#!/usr/bin/env python3\n",
"\n",
"import shutil\n",
@ -399,8 +392,6 @@
"\n",
"sys.exit(0)\n",
"\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py\n",
"```\n",
"\n",
@ -412,7 +403,7 @@
"## File with code\n",
"\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",
"\n",
"import shutil\n",
@ -451,8 +442,6 @@
"\n",
"sys.exit(0)\n",
"\n",
"\n",
"```\n",
"./disk\\_usage\\_fixed.py \n",
"```\n",
"\n",