Using nested lists and tables

Zeynel azeynel1 at gmail.com
Thu Oct 28 09:19:43 EDT 2010


On Oct 28, 4:49 am, Peter Otten <__pete... at web.de> wrote:

Thank you this is great; but I don't know how to modify this code so
that when the user types the string 's' on the form in the app he sees
what he is typing. So, this will be in GAE. But I have a couple of
other questions, for learning purposes. Thanks again, for the help.

> ...     if columns and columns[-1][0] == s:

Here, how do you compare "columns" (a list?) and columns[-1][0] (an
item in a list)?

>>> for row in range(max(len(c) for c in columns)):
> ...     print " | ".join(c[row] if len(c) > row else " "*len(c[0]) for c in
> columns)

What is "c" here?




More information about the Python-list mailing list