I am diligently working my way through the exercises and have come up with an error that I can’t seem to figure out.
When I run the ex17.py script, I get a syntax error at line 14.
PS C:\Users\James\lpthw> python ex17.py test.txt new_file.txt
File “ex17.py”, line 14
print(f"Does the output file exist? {exists(to_file)}")
^
SyntaxError: invalid syntax
But when I troubleshoot the code itself, it seems to look exactly the same as the sample code.