list1 = [4, 19, 11, 5, 3, 9, 7]
list2 = [10, 3, 7, 2, 9, 8, 6, 5]
print('The given First list elements are : ', list1)
print('The given Second list elements are : ', list2)
for p in range(len(list1)):
list1[p] = list1[p] ^ list2[p]
print('The result after applying xor operation on both lists is', list1)
# Coded By Dhiraj Shelke
#ENJOY CODING
Post a Comment
FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP