I have two list
ListA = ['John', 'Glucose', 'ABC', 'XYZ'....]
ListB = ['XYZ', 'John', 'Mike',.....]
num = []
for i in range(len(ListB)):
for a in range(len(ListA)):
if ListB[i] == ListA[a]:
print(a)
num.append(a)
num = sorted(num)
print(ListA[POINT OF DIFFERENCE UPON OBSERVATION])
These list are not the same length or contain all the same strings.
I would like to print out a list containing the names of the components that are missing each of the listA and ListB: An output that would be helpful would be
List A missing Gabriel and Bob. List B missing Fructose and Xylem.
Right now I have half the solution. If someone could guide my reasoning that would be helpful.
Thank you