eg.
l1 = [a,b,c,d]
l2 = [e,b,f,g]
A method that would return true when it sees that b is in both l1 and l2, and in position [1] in both lists. Preferably something that I can use in a for loop so that I can compare all the items in the list.
Many thanks 🙂
Try this code:
Unlike Volatility’s code, the length in either list doesn’t matter.
The index() function gets the position of an element in a string. For example, if there was: