list1=[a,b,c,d]
list2=[d,e,f,g]
I want a list3
which should look like:
list3=[a-d,b-e,c-f,d-g]
Please tell me how to do this in a loop as my list1
and list2
have many entities.
list1 and list2 contain strings.
For example:
list1=['cat','dog']
list2=['dog','cat']
list3=['cat-dog','dog-cat']