Re: problem generating rows in table

2005-11-07 Thread s99999999s2003
thanks for all the help. problem solved by taking out range(). -- http://mail.python.org/mailman/listinfo/python-list

Re: problem generating rows in table

2005-11-07 Thread Mike Meyer
[EMAIL PROTECTED] writes: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplace')] > print ''' > > User > Name > Address > > > ''' > > for i in range(0,len(toprint)-1

Re: problem generating rows in table

2005-11-07 Thread [EMAIL PROTECTED]
len(toprint) -1 seems to be 0 so it seems that the loops are skipped ? why not just : for x in toprint: for y in x: print "%s" % y these suffix things are very prone to error. [EMAIL PROTECTED] wrote: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplac

Re: problem generating rows in table

2005-11-07 Thread Steve Holden
[EMAIL PROTECTED] wrote: > hi > i wish to generate a table using cgi > toprint = [('nickname', 'justme', 'someplace')] > print ''' > > User > Name > Address > > > ''' > > for i in range(0,len(toprint)-1

problem generating rows in table

2005-11-07 Thread s99999999s2003
hi i wish to generate a table using cgi toprint = [('nickname', 'justme', 'someplace')] print ''' User Name Address ''' for i in range(0,len(toprint)-1): for j in range(0,len(toprint[0])-1): print