Ask HN: Have I discovered an insoluble programming problem?
I am trying to do a simple list manipulation in Python and I spent about a week learning lists and related topics and I still cannot display a columnar list. I asked the question here and stackoverflow but with no luck. I would appreciate any help. Thanks
(Links in the comment and sorry about the title!)
5 comments
[ 3.9 ms ] story [ 24.3 ms ] threadhttp://stackoverflow.com/questions/4011728/conditional-state...
I'm sorry you seemed to have not gotten help on this. The title seemed a little silly to me.
In my problem, I get a string s that user enters in a form.
I append that to an empty list L = []
then I test if the last saved string is the same as the new string. If same, I write it on the same column; if not the cursor moves to next column (I was trying to do this with tables) and as long as the user types the same string the cursor stays on the same column. If a new string is typed; a new column is started; and so on.
I don't think your solution is to this problem. You assume that there is a list with duplicates.
Does this make sense?