Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def xor(list):
- #List based truth function similar to "all" and "any"
- return len([i for i in list if i]) == 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement