def get_info_better(word): string = "" try: string += "№ %s \n" % word string += "№ %s \n" % remdict.get_definition(word) except: raise Exception else: string += "№ %s \n" % remdict.get_example_of_use(word) return string
def get_info(): string = "" try: rm = wod.random_word(7) string += rm + "\n" string += remdict.get_definition(rm) + "\n" except: raise Exception else: string += remdict.get_example_of_use(rm) return string
def get_info(): string = "" word = wod.random_word(7) try: string += "№ %s\n" % word string += "№ %s\n" % remdict.get_definition(word) except: raise Exception else: string += "№ %s \n" % remdict.get_example_of_use(word) return string
def get_definition(word): definition = remdict.get_definition(word) return definition
def get_definition(word): definition = "№ " + remdict.get_definition(word) return definition