http://stackoverflow.com/questions/4011728/conditional-statements-with-python-lists
I am trying to build a simple app in GAE that will take a string s from user and check if it is same as the previous string s0; if same, the string will appear in the same column; if not it will move to the next column.
Like this:
Hello world
Hello world
Hello world
Hello world Hello Universe
Hello world
Hello world
Hello world Hello Universe
Hello world Hello Universe
Hello world Hello Universe
Hello Universe
Hello Universe
Hello world Hello Universe Hello Cosmos
Hello world Hello Universe
Hello world Hello Universe
Hello Universe
Hello Universe
I have been trying to do this with nested lists; I learned a lot about lists but I start to doubt that nested lists is not the right method. I appreciate it if you suggest better alternatives. Thanks.