you can also use a for loop =) list = [1,2,3,4,5,6,7] str = ' ' for i in list: str+=i print str
On Dec 12, 2007 2:25 PM, Lee Capps <[EMAIL PROTECTED]> wrote: > > On Dec 11, 2007, at 5:14 PM, katie smith wrote: > > > "[16, 16, 2, 16, 2, 16, 8, 16]" > > Regular expressions might be a good way to handle this. > > import re > > s = '[16, 16, 2, 16, 2, 16, 8, 16]' > get_numbers = re.compile('\d\d*').findall > > numbers = [int(x) for x in get_numbers(s)] > > See: > > http://docs.python.org/lib/module-re.html > > --- > Lee Capps > Technology Specialist > CTE Resource Center > [EMAIL PROTECTED] > > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://search.goldwatches.com/?Search=Movado+Watches http://www.jewelerslounge.com http://www.goldwatches.com
-- http://mail.python.org/mailman/listinfo/python-list