SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def intersect(values1, values2):
  2.     values3 = [value for value in values1 if value in values2]
  3.     return values3
  4.  
  5. values1 = [3, 5, 7, 9, 5, 7]
  6. values2 = [5, 6, 7, 7, 8, 9, 10]
  7. print(intersect(values1, values2))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top