I have the given the following two lists:
list1 = ['', '', 'void KL15 ein', '{', '}', '', 'void Motor ein', '{', '}', '']
and
list2 = ['KL15 ein', 'Motor ein']
Now I want to find out if the a value from the second list 'KL15 ein'
is also in the first list (as a void function).
Do I need to extract the value 'KL15 ein'
from both lists to compare it or is there another way to do it without extracting (via splitting and access the list) the values?
Edit: I noticed that I need variables (can't use 'KL15 ein' as a string), e.g: if the value from list1 is also listed in list 2