Read Files Into A Dictionary In Python
What am I doing wrong when I am trying to read these into a dictionary? I am getting this error when trying to read values into a dictionary: Traceback (most recent call last): F
Solution 1:
You most probably have an empty line in one of the files.
Protect that part of the code with a if line:
, or a try
...except
Post a Comment for "Read Files Into A Dictionary In Python"