It gets a random word and its dictionary definition from webster dictionary's API, and prints the word and definition to the console.
some api practice in python too.
I was curious how chatGPT would make the app, so i asked it to and it did - in 5 minutes (with minimal help).
In order to use this you'd need your own Webster API key. See how at webster's official documentation.Run either python file to output a random word from a dictionary and its werriam-webster definition.
- chatbot.py is chatgpt's first implementation, and it writes the word to a file named "word.txt"
- otherchatter.py is chatgpt's first implementation, and it prints the word and definition
- getword.py is my implimentation that writes to the file