def synonyms(): ret = str(request.args['query']) html = "" synonyms = Dictionary.find_synonyms(ret) for syn in synonyms: html = html + "<li class='list-group-item'>" + str(syn) + "</li>" print(syn) return html
def synonyms(): ret = str(request.args['query']) return Dictionary.find_synonyms(ret)