[Tutor] Can someone help me to improve this segment?

Titu Kim kimtitu@yahoo.com
Mon, 29 Oct 2001 21:27:16 -0800 (PST)

I am little obssessed with my own coded after i
found out it is slow. I am trying to construct a html
table string from a result that i obtain from
database.My code segment look like this: assume result
 holds 2D list.
 *******  method********************************
 def f1(item):
     return "<td>"+str(item)+"</td>"
 ************main program piece***********
 tab = "<table align='center' border='1'>\n"
 for x in result:
    tab = tab + "<tr>"
    tab = tab + string.join(map(f1,x),"")+"</tr>\n"
 tab = tab + "</table>"
 Can anyone improve this code segment? Thanks alot
 Kim Titu

Do You Yahoo!?
Make a great connection at Yahoo! Personals.