TypeError: 'dict' object is not callable

Answered

New project that contains the script I get the error on, the dictionary in a .json file. I get the error below. I had no issue loading the json dictionnary into the project but when I try to call it in a script I get an error. Have only been using PyCharm for past few weeks trying to learn Python. Am sure I"m doing something silly here but can't work this out.

 

 

0
1 comment

You are calling data on line 7, which is not allowed and you get the corresponding error. You should use data[w] instead of data(w).
The question isn't really related to PyCharm so next time it's better to post it on Python-related forums :)

0

Please sign in to leave a comment.