Python checks whether a collection contains all the items of another collection

From , 4 Years ago, written in Python, viewed 53 times.
URL https://pastebin.vip/view/b91f4f4d
  1. >>> L1 = [1, 2, 3, 3]
  2. >>> L2 = [1, 2, 3, 4]
  3. >>> set(L1).difference(L2)
  4. set([ ])
  5. >>> set(L2).difference(L1)
  6. set([4])
  7.  
  8.  
  9.  

Reply to "Python checks whether a collection contains all the items of another collection"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website