Posted on 16th September 2024| views
Yes, you can perform it easily by using reduce() + lambda + “^” operator look at this example to understand.
ex_list = [5, 4, 2, 8, 3, 9]
print("The actual list is : " + str(ex_list))
res = reduce(lambda a,b : a^b, ex_list)
print("The Bitwise XOR of list are : " + str(res))