daily pastebin goal
52%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 40 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. #!/bin/usr/env python
  2. import random
  3. #a = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
  4. #b = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
  5.  
  6. a=[random.randrange(0,50,1) for i in range(0,51,1)]
  7. b=[random.randrange(0,50,1) for i in range(0,51,1)]
  8.  
  9. #Converting a List into a Set, to remove duplicates
  10. seta=set(a)
  11. setb=set(b)
  12. c=seta.intersection(setb)
  13. print(c)
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