Skip to content

Commit df16b17

Browse files
committed
Level 4 aufgeräumt
1 parent a8614f6 commit df16b17

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

Level_04/Level_4.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 3,
17+
"execution_count": 2,
1818
"metadata": {},
1919
"outputs": [
2020
{
@@ -23,7 +23,7 @@
2323
"True"
2424
]
2525
},
26-
"execution_count": 3,
26+
"execution_count": 2,
2727
"metadata": {},
2828
"output_type": "execute_result"
2929
}
@@ -32,7 +32,7 @@
3232
"from pathlib import Path\n",
3333
"\n",
3434
"# Referenz auf die Datei \"loremipsum.txt\"\n",
35-
"ipsum = Path(\"loremipsum.txt\")\n",
35+
"ipsum = Path(\"Beispielcode\") / Path(\"loremipsum.txt\")\n",
3636
"\n",
3737
"# Existiert diese Datei? Ist es überhaupt eine Datei?\n",
3838
"ipsum.exists() and ipsum.is_file()"
@@ -80,7 +80,7 @@
8080
},
8181
{
8282
"cell_type": "code",
83-
"execution_count": 5,
83+
"execution_count": 3,
8484
"metadata": {},
8585
"outputs": [
8686
{
@@ -97,7 +97,7 @@
9797
}
9898
],
9999
"source": [
100-
"lorem_ipsum = Path(\"loremipsum.txt\").open(\"r\")\n",
100+
"lorem_ipsum = (Path(\"Beispielcode\") / Path(\"loremipsum.txt\")).open(\"r\")\n",
101101
"print(lorem_ipsum.tell())\n",
102102
"print(lorem_ipsum.read(5))\n",
103103
"print(lorem_ipsum.tell())\n",

0 commit comments

Comments
 (0)