I am working on a dictionary project. So, I downloaded a JSON file and placed it on my desktop. I tried to import it into my Python file but it says the file is not found.
FileNotFoundError: [Errno 2] No such file or directory: 'data.json'
Here's my code:
import json
data = json.loads(open('data.json'))
print(data)