|
Big Stick
big.stick at bol.com.br
Wed Jun 11 15:03:12 EST 2003
Em 11/6/2003 às 14:48, tpc escreveu:
> I tried something like that, and I just tried it with "".join and
> both times I got this error:
> TypeError: sequence item 0: expected string, list found
This is because youŽre trying to concatenate a list of lists, not a
list of strings. Try this instead:
def convert(numbers):
w = []
for argument in numbers:
w.append(dict1[argument])
return ''.join(w)
-- stick
|