The first application we are going to build is a dictionary. An interactive dictionary. Now, what the dictionary will do? It will retrieve the definition for the word which user has entered, that’s what dictionaries do, right? In addition to that, if the user has made a typo while entering a word, our program will suggest the closest word saying ‘did you mean this instead?’, and if the word has more than one definition, retrieve all of them.
This week we will have a quick look at the use of python dictionaries and the JSON data format. After reading this post, you should have a basic understanding how to work with JSON data and dictionaries in python. I'll choose this topic because of some future posts about the work with python and APIs, where a basic understanding of the data format JSON is helpful.