I would like to return values from both lists that not in the other one:
bar = [ 1,2,3,4,5 ] foo = [ 1,2,3,6 ] returnNotMatches( a,b )
would r
You could use a list comprehension and zip
''.join([i[0] for i in zip(a, a.lower()) if i[0] == i[1]])