I have several lists in sqlite rows as follows:
ROWID x 1 ['123', '1234', '12345',] 2 ['abc', 'abcd', 'abcde',] 3 ['1a2b3c', '1a2b3c4d', '1a2b3c4d5e',] I would like to iterate over these items in a game that matches them with a user input, say when a user prints 123, it prints out the answer or gives a boolean value. The only problem is that when i print our items in row[1] or row[2] i get a none value, but is works well with row[0]. This is part of my code on the sqlite section. def types(): location = "" conn = sqlite3.connect("types.db") c = conn.cursor() c.execute('select * from types ORDER by X') for rowid,X in c.execute("select rowid,X from types order by X"): return row[:] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.