Which is faster: x*x or x**2?

Viewed 13502

I am trying to optimize my Python code. Between:

y = x*x

or

y = x**2

if I need one trillion iterations in a speed-critical program, which one should I choose?

1 Answers
Related