Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- from random import shuffle
- from functools import reduce
- setset = set([random.randint(0, 10) for r in range(10)])
- arr = list(setset)
- arr.extend(setset)
- arr.extend([110])
- shuffle(arr)
- print(arr)
- print(reduce((lambda x,y : x^y), arr))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement