On exponentiation | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
0

On exponentiation

If ** is used to raise a number to another, what does ^ now do?

5th Apr 2021, 10:38 PM
Oluwadurotimi Efunshile
4 Respuestas
+ 2
6th Apr 2021, 12:43 AM
BroFar
BroFar - avatar
+ 1
Oh oh thanks a lot ūü§ü
5th Apr 2021, 10:53 PM
Oluwadurotimi Efunshile
0
Hi! You can use it as a operator for symetric differance between two sets.
5th Apr 2021, 10:51 PM
Per Bratthammar
Per Bratthammar - avatar
0
And as a bitwise operator it works as exclusive or (XOR).
5th Apr 2021, 10:57 PM
Per Bratthammar
Per Bratthammar - avatar