About 398 letters
About 2 minutes
Description: Calculate the power.
def pow(x, y):
'''
Calculate power
:param x: Base
:param y: Exponent
:return: x raised to the power y
'''
Example:
print(pow(2, 3))
Created in 5/15/2025
Updated in 5/16/2025