5 for k
in list(d
.keys()):
11 def get_word_at_pos(str, pos
):
16 word_chars
= string
.ascii_letters
+ string
.digits
+ "._+"
17 if str[pos
] not in word_chars
:
20 while beg
>= 1 and str[beg
- 1] in word_chars
:
23 while end
< len(str) - 1 and str[end
+ 1] in word_chars
:
25 return str[beg
:end
+ 1]