A step counter saves each day's steps as a whole number on its own line. Some days were skipped, which left blank lines.
Write total_steps(path). Return the sum of all the numbers in the file.
total_steps(path)
0
Leave the make_file helper as it is.
make_file
1def make_file(path, text):2 with open(path, "w") as f:3 f.write(text)4 return path5 6 7def total_steps(path):8 # your code here9 pass10