Comment faire des échanges dans Python sans fonction de tri
# Python3 code to swap using XOR
x = 10
y = 5
# Code to swap 'x' and 'y'
x = x ^ y; # x now becomes 15 (1111)
y = x ^ y; # y becomes 10 (1010)
x = x ^ y; # x becomes 5 (0101)
print ("After Swapping: x = ", x, " y =", y)
android developer