human
Give me a Python code to calculate the sum of all digits of the base to the specified power given the following:
Write a function that takes base and power as arguments and calculate the sum of all digits of the base to the specified power. Here is a solution in Python:
assistant
#Here is Python code to calculate the sum of all digits of the base to the specified power.
 def power_base_sum(base, power):
    return sum([int(i) for i in str(pow(base, power))])