^ GATES IN PYTHON | Sololearn: Learn to code for FREE!
24th Mar 2021, 4:44 AM
Sanjay Kamath
Sanjay Kamath - avatar
2 ответов
+ 4
^ is bitwise xor operator power operator in python is **
24th Mar 2021, 4:46 AM
visph
visph - avatar
+ 2
because val xor 0 == val... xor invert bits at position of bit sets (1), so 0 leave other argument inchanged ;)
24th Mar 2021, 4:48 AM
visph
visph - avatar