This 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
import json
// importing get_close_matches fuction from difflib library
from difflib import get_close_matches
// loading data
data = json.load(open("data.txt"))
// defining function meaning
def meaning(w):
// converting all the letters of "w" to lower case
w = w.lower()
// checking if "w" is in data
if w in data:
return data[w]
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
This 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