I have a list of tuples, called list_out. I want to access values of the 2nd column in the list(i want acsses to '313','321'and '365'). list_out is following:
list_out = [('2240', '313', {'Sign': 1}),
('2240', '321', {'Sign': 1}),
('2240', '365', {'Sign': -1})]
I used :
print (list_out[0])
out:
('2240', '313', {'Sign': 1})
then i used:
print (list_out[0][1])
out:
313
above code, return value of 2nd columns in one row in the list(only '313'). I want access to the value of 2nd column in all row. Please suggest me a way to solve this problem.