Comparing two lists and only printing the differences? (XORing two lists)

前端 未结 6 1767
盖世英雄少女心
盖世英雄少女心 2020-12-09 11:55

I\'m trying to create a function that takes in 2 lists and returns the list that only has the differences of the two lists.

Example:

a = [1,2,5,7,9]         


        
6条回答
提交回复
热议问题