How to raise a number to a power?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Tort

Hi. How to raise a number to a power? (In python **2)

:bust_in_silhouette: Reply From: Adam Volný

You use the function pow(a, b) which is equivalent to python a ** b.

And nowadays a ** b does also work.

Kirito | 2023-02-23 20:44