# basics variables

Powers with **

To raise a number to a power, use **:

print(2 ** 3)

This prints 8 — that's 2 × 2 × 2 (2 to the power of 3).

Your turn: read a number base and a number power. Print base ** power.

💡 need a hint?

pyb-var-exponent.py🔒 given lines are locked — write your code in between
loading...