8000 Update paths to match book · monkeyfx/python-basics-exercises@806f099 · GitHub
[go: up one dir, main page]

Skip to content

Commit 806f099

Browse files
committed
Update paths to match book
1 parent aea250d commit 806f099

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

ch11-file-input-and-output/2-working-with-paths-in-python.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import glob
88

99
# This path may need to be changed depending on your setup
10-
path = "C:/python-basics-exercises/ch11-file-input-and-output\
11-
/practice_files/images"
10+
path = "C:/Real Python/python-basics-exercises/ch11-file-input-and-output\
11+
/practice_files/images"
1212

1313

1414
# Exercise 1

ch11-file-input-and-output/3-challenge.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
import os
88

9-
path = "C:/python-basics-exercises/ch11-file-input-and-output\
10-
/practice_files/little pics"
9+
path = "C:/Real Python/python-basics-exercises/ch11-file-input-and-output\
10+
/practice_files/little pics"
1111

1212
for current_folder, subfolders, file_names in os.walk(path):
1313
for file_name in file_names:

ch11-file-input-and-output/4-read-and-write-csv-data.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import csv
88

99
# This path may need to be changed depending on your setup
10-
path = "C:/python-basics-exercises/ch11-file-input-and-output/practice_files"
10+
path = "C:/Real Python/python-basics-exercises/\
11+
/ch11-file-input-and-output/practice_files"
1112

1213
# Read in a CSV and display each row except the header row
1314
# Append a third column and write out the resulting CSV with a new header

ch11-file-input-and-output/5-challenge.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import os
99

1010
# Change my_path to the correct path on your system
11-
path = "C:/python-basics-exercises/ch11-file-input-and-output/practice_files"
11+
path = "C:/Real Python/python-basics-exercises/\
12+
/ch11-file-input-and-output/practice_files"
1213

1314
high_scores_dict = {}
1415
with open(os.path.join(path, "scores.csv"), "r") as myFile:

0 commit comments

Comments
 (0)
0