How can we merge two list so that it includes all elements of list 1 and only elements from the list 2 which are not in list 1. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How can we merge two list so that it includes all elements of list 1 and only elements from the list 2 which are not in list 1.

list1=[1,5,8,7,8,6] list2=[5,9,6,10,11] Result=[1, 5,8,7,6,9,10,11]

21st Jan 2018, 3:23 AM
Rahul Dwiwedi
1 Answer
21st Jan 2018, 5:15 AM
code learner
code learner - avatar