Why do we use .pow(2) and not **2?

I always use **2 and have not run into problems and I would expect it to roughly have the same performance, too (for operators, python needs to figure out whose special function it should call). I suspect that people coming from other languages might not be used to the convenience of a power operator.

Best regards

Thomas

1 Like