Advertisement
deflorator1980

Untitled

Mar 20th, 2017
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import random
  2. from random import shuffle
  3. from functools import reduce
  4.  
  5. setset = set([random.randint(0, 10) for r in range(10)])
  6. arr = list(setset)
  7. arr.extend(setset)
  8. arr.extend([110])
  9. shuffle(arr)
  10. print(arr)
  11.  
  12. print(reduce((lambda x,y : x^y), arr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement