* It doesn't use (abuse) the call stack
* It doesn't write on memory nor damaging the input data
* It uses at most 5 elements of the stack
Code: Select all
0<00^54*:2?3gdp!0^<0^3^:1:2?4g1v2vd1+058*-g
Code: Select all
0<00^54*:2?3gdp!0^<0^3^:1:2?4g1v2vd1+058*-g
Code: Select all
raw="""
<PASTE THE TEXT HERE>
"""
# drop ponctuation
txt = raw.replace('.', ' ').replace(',', ' ')
# go get the word
list = txt.split()
word = [x for x in list if list.cont(x) == 1]
# here you are!!!
print(word)