AI engineering glossary · Python core

What is exponentiation?

Exponentiation: Raising a number to a power using the ** operator, meaning repeated multiplication of the base by itself. It has higher precedence than multiplication and associates right to left. A fractional exponent gives roots.

Level: beginnerTopic: Python core

Exponentiation: an example

2 ** 10 gives 1024, 9 ** 0.5 gives 3.0, and 2 ** 3 ** 2 is evaluated as 2 ** 9, giving 512.

Related terms

More Python core terms

Where you learn it

Exponentiation is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.