Given the data below, how would I print elements of a list within a list that were present within another list within a different list?
Example;
a = [['P101','John','Jones','100'], ['P102','Steve','Woodhouse','500'], ['P103','Ben','Jacobs','60']]
b = [['P101','John','Jones','250'], ['P102','Steve','Woodhouse','500']
I would like to print 'John Jones' & 'Steve Woodhouse' even though 'John Jones''s list is slightly different (his ID 'P101' still appears in both lists). I would also like to print 'Steve Woodhouse' but not 'Ben Jacobs', because he is not present in both lists.