I'm a beginner using Python and I'm stuck.
I've imported some data from two separate CSV files and added them to relevant variables:
List_1 = [['01', 'Banana', '2', '10'],['02', 'Apple', '1', '10'],
['03', 'Orange', '3', '10']]
Explanation of values: [Item number, Item, Item cost, Item Stock]
List_2 = [['02','3'],['01','1'],['03','5']]
Explanation of values: [Item number, Amount paid]
I need to match the 1st value in List_2 i.e 02 with the item number in List_1
i.e the 1st item. Then retrieve he attributed cost, in this example 2.
I hope this makes sense. I've tried a few times with different syntax etc and failed miserably.