curiosity impels me, if list append is most efficient in concatenating to
the end of a string, how would I use it where I previously had string
concatenation ? I can only print out the values
surrounded by [[''],[''], etc]:
<code>
import sys
dict1 = {
'0' : 'zero',
'1' : 'one',
'2' : 'two',
'3' : 'three',
'4' : 'four',
'5' : 'five',
'6' : 'six',
'7' : 'seven',
'8' : 'eight',
'9' : 'nine',
' ' : '\n',
}
def convert(numbers):
w = []
for argument in numbers:
w.append([dict1[digit] for digit in argument])
# w += ''.join([dict1[digit] for digit in argument])
return w
</code>
On Tue, 10 Jun 2003, Jonathan Gardner wrote:
> -----BEGIN-----
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> 
>