0

Hi,

I have a cgi script in python that outputs a html table, but i also need to count the number of rows in that specific table. Any ideas on how i can proceed?

Thanks in advance,

ymf

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by ymf
0

Hi,

Thanks for the delimiter idea, i'll try that as well. I inserted a count function within the loop that prints the table rows. i.e everytime it prints a specific row the count value increases by one as follows:

count = 0
for word in alist:
                word = word.strip() 
        count += 1
        print "<td> ",word,"</td>"
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.