Hello,

I'm quite new in Python and I have one question. I have a 2D matrix of
values stored in list (3 columns, many rows). I wonder if I can select one
column without having to go through the list with 'for' command.

For example I have list called 'values'.
When I write 'values[0]' or 'values[0][:]' I'll get the first row.
But when I write 'values[:][0]' I won't get the first column, but the first
row again! I can't see why.

Thanks
Hoffik
-- 
View this message in context: 
http://www.nabble.com/Select-column-from-a-list-tp25185508p25185508.html
Sent from the Python - python-list mailing list archive at Nabble.com.

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

Reply via email to