I have a list of lists containing some data and I would like to be able to call the contents of the list of lists but only certain things ex: empList[0][0]
, empList[0][1]
. I would like to be able to do that to each item in the list and then call the selected index from that part of the list ex: empList[0][0]
, empList[0][1]
, empList[1][0]
, empList[1][1]
but in a for loop.
My code for reference:
empList = [
['51-4678119', 'Issie', 'Scholard', '11 Texas Court', 'Columbia', 'Missouri', '65218', '3', '134386.51', '34', '91.06'],
['68-9609244', 'Jed', 'Netti', '85 Coolidge Terrace', 'San Antonio', 'Texas', '78255', '2', '159648.55', '47', '45.7'],
['47-2771794', 'Galvan', 'Solesbury', '3 Drewry Junction', 'Springfield', 'Illinois', '62794', '2', '91934.89', '39', '47.92']
]
emp = employee(empList[0][0], empList[0][1], empList[0][2], empList[0][3], empList[0][4], empList[0][5], empList[0][6], empList[0][7])
Hopefully this makes sense. Thank you!