Why There are only two asterisks (**) between x & y in exponentiation if Python ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why There are only two asterisks (**) between x & y in exponentiation if Python ?

I just want you to elaborate the reason. I want to know that reason.

27th Feb 2017, 6:18 PM
Nirmal Kakati
Nirmal Kakati - avatar
2 Answers
+ 2
Andd... you want more?😂 I think 2 is pretty enough. Unfortunatelly symbol ^ that used in another languages as pow is reserved in python for bitwise XOR operator.
27th Feb 2017, 8:42 PM
Leshark
Leshark - avatar
+ 1
Not just bitwise XOR operator, also set SYMMETRIC DIFFERENCE operator
27th Feb 2017, 8:52 PM
Amaras A
Amaras A - avatar