Answers for "find different between list"

0

find different between list

a = ['1', '2']
b = ['1', '2', '3', '4']
diff = list(set(a) - set(b))

['3', '4']
Posted by: Guest on July-15-2021

Code answers related to "find different between list"

Python Answers by Framework

Browse Popular Code Answers by Language