How to implement Dictionary with Python3?
Dictionary with python
1765
29-Jun-2018
Updated on 29-Jun-2018
Prakash nidhi Verma
29-Jun-2018This program uses python like a container it's called dictionary which is in dictionary a key is associated with some information. This program will take a word as input and returns the meaning of that word.
Example:
data = {"mindstick" : "engage in software development and open source for question answer portal."}
// Python3 Code for implementing
// dictionary
// importing json library
// importing get_close_matches fuction from difflib library
// loading data
data = json.load(open("data.txt"))
// defining function meaning
// checking if "w" is in data