code: def print_thesaurus_response(word, client):
      response = client.getThesaurus(word)
      print("SYNONYMS: ")
      
      try:
          print(",".join(response["words"]))
      except TypeError:
          pass
docs: if "noun" in response:
          print("\nNouns:\n%s" % " ".join(response["noun"]["syn"]))
      if "verb" in response:
          print("Verbs:\n%s" % " ".join(response["verb"]["syn"]))