# Define base and exponent
base = 2
exponent = 3
# Calculate result using exponentiation
result = base ** exponent
code
Exponentiation
This Python code demonstrates exponentiation, where the base is raised to the power of the exponent. The comments provide explanations for each part of the code.
Exponentiation
Power Operator