I have two lists of strings that contain a set of names, what I want to know is how can I compare these two lists to find identical names and then write an if statement which performs actions based on the comparison.
List 1: Philip Bob Michael
List 2: James Peter Bob