Skip to content

Commit 966412c

Browse files
edit the function
1 parent 7662c09 commit 966412c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CSV_files/read_csv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import csv
22

3-
def read_using_DictReader():
3+
def read_using_DictReader(path):
44
# opening the CSV file
5-
with open('CSV_files/assets/addresses.csv', mode ='r') as file:
5+
with open(path, mode ='r') as file:
66
# reading the CSV file
77
csvFile = csv.DictReader(file)
88

@@ -14,4 +14,4 @@ def read_using_DictReader():
1414

1515

1616
if __name__=="__main__":
17-
print(read_using_DictReader())
17+
print(read_using_DictReader('CSV_files/assets/addresses.csv'))

0 commit comments

Comments
 (0)