diff --git a/PyDictionary/core.py b/PyDictionary/core.py index 1eb7298..12dd9b5 100644 --- a/PyDictionary/core.py +++ b/PyDictionary/core.py @@ -122,8 +122,8 @@ def meaning(term, disable_errors=False): length = len(types) lists = html.findAll("ul") out = {} - for a in types: - reg = str(lists[types.index(a)]) + for a, reg in zip(types, lists): + reg = str(reg) meanings = [] for x in re.findall(r'\((.*?)\)', reg): if 'often followed by' in x: