0
Python
Can someone explain this code please? a = 2 print(a*++a)
3 Answers
+ 2
It will just do a*a,
++ or -- does not do anything in python, we cant increase/decrease value by 1 with this like we can in javascript for example. But for some reason this dont throw error.
+ 1
It squares a like a**2 does
0
I understood what does it mean. It means (a*(+(+a))) = (a*(+a)) = (a*a)