ScanSkill

** (power)

This ** (power) arithmetic operator returns the product of the two expressions.

Syntax

A ** B

Here,

  • A: An expression that is evaluating to a numeric type.
  • B: An expression that is evaluating to a numeric type.

Note: In python, pow(0, 0) and 0 ** 0 is 1.

Examples

>>> 2**2
4
>>> 2**2.0
4.0
>>> 2.0**2
4.0
>>> 4**0.5
2.0
>>> 4**-2
0.0625