We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e278a7e commit a5d6327Copy full SHA for a5d6327
ch12-file-input-and-output/7-challenge-create-a-high-scores-list.py
@@ -6,11 +6,11 @@
6
7
# Change the path below to match the location on your computer
8
scores_csv_path = (
9
- Path.home() /
10
- "github/realpython" /
11
- "python-basics-exercises" /
12
- "ch11-file-input-and-output" /
13
- "practice_files" /
+ Path.home()
+ / "github/realpython"
+ / "python-basics-exercises"
+ / "ch12-file-input-and-output"
+ / "practice_files"
14
"scores.csv"
15
)
16
@@ -21,7 +21,7 @@
21
high_scores = {}
22
for item in scores:
23
name = item["name"]
24
- score = item["score"]
+ score = int(item["score"])
25
# If the name has not been added to the high_score dictionary, then
26
# create a new key with the name and set its value to the score
27
if name not in high_scores:
0 commit comments