Exponents
The exponent operator in Python is two asterisks (“**”).
The following statement calculates the square of 3 (32):
print (3 ** 2)
Assignment
Write a program that prints the answer of 2 to the exponent 8.
Save as "011.py".
The exponent operator in Python is two asterisks (“**”).
The following statement calculates the square of 3 (32):
print (3 ** 2)
Assignment
Write a program that prints the answer of 2 to the exponent 8.
Save as "011.py".