SHARE
TWEET

13.11.4

daniil-vlasenko Sep 21st, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from random import randrange as rnd
  2. a = []
  3. for p in range(10):
  4.     a.append(rnd(10))
  5. print(a)
  6.  
  7. b = []
  8. for p in range(10):
  9.     b.append(rnd(10))
  10. print(b)
  11.  
  12. res = []
  13.  
  14.  
  15. for x in a:
  16.     k = 0
  17.     for y in b:
  18.         if x == y:
  19.             k += 1
  20.             break
  21.     if k == 0:
  22.         res.append(x)
  23.         res.append(y)
  24. print(res)
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