Skip to content

Commit 6fe1dde

Browse files
committed
exercise 5
1 parent 55eab8f commit 6fe1dde

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

2. os/exercise 5/README.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Exercise 5
2+
3+
Using the built-in os module create `images` directory in your working directory. Then go to the `images` directory and print the current path to the working directory.
4+
5+
## Expected result
6+
7+
```cmd
8+
/your-current-directory/images
9+
```

2. os/exercise 5/exercise.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import os

2. os/exercise 5/solution.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import os
2+
3+
os.mkdir('images')
4+
os.chdir('images')
5+
6+
print(os.getcwd())

0 commit comments

Comments
 (0)