Jun-30-2020, 04:39 AM
I think it is the "r" outside the quotes in your file name is giving you problems.
If you are trying to open the file to read only, I think the "r" belongs here:
If you are trying to open the file to read only, I think the "r" belongs here:
with open(file_name, r) as f_obj:Not 100% on that, just a best guess.