I have 2 lists of strings that I need to compare.
Say list1
is ["a", "b", "c", "d"]
and list2
is ["a", "b", "c", "d", "e", "f"]
I have succeded in comparing them with
check = any(i in ccourt for i in champs)
print(check)
Edit: Ok so I asked poorly and misunderstood the any()
method, sorry, what I'm stuck on is the comparing part.
Yes the any()
part works, but it doesn't say that the "e"
and "f
" of list2
isn't in list1
, that is what I want it do to.
Thank you in advance