i have a list of sentences called "data" and i carried out an operation of soundex.
i dont know how to store it in a variable.. here is my code:
for line in data:
for word in line.split():
print jellyfish.soundex(word)
that gives me a list of soundex codes for all words..
how do i store the results in a variable?? i have tried:
data_new = [(jellyfish.soundex(word) for word in line.split()) for line in data]
but that did not help.