After importing requests library. You can use requests.get() to call data from the API.
If you remember the data that’s returned is requests type and if you try to print it “raw”, it will give you a code. (Some of the most common codes are 200: successful and 404: error)
To print the content in a readable way you need to try adding .text to your data.
You can experiment with
params
parameter. i.e.: import requests
par_list = ["words?sp=Kentucky"]
f = "https://api.datamuse.com/words?"
data = requests.get(f, params=par_list)
print(data.text)
This exercise doesn’t have one designated solution and the goal is that you experiment with the concept until you achieve a feeling of confidence with.