# How do I calculate powers;

AlexandrosKap
Posts:

**10**Member
in Programming

2 ** 3 # 2 to the power of 3

This is how I do it with Python.

## Answers

902AdminAccording to this Reddit post and the documentation, you can use the

`pow`

function. For example, to get`2`

to the power of`3`

, you can use`pow(2, 3)`

.Hopefully this helps

10MemberThanks!