What you really want to write is
for i in x:
    for j in i:
        print j

The outer loop iterates over the tuples in the list, while the inner
loop iterates over the elements of each tuple. So j (in your example)
is always an integer, and is therefore unsubscriptable, which is
exactly what the error message says.

Thomas Philips

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to