Consider the code for the recursive function my_print shown…

Consider the code for the recursive function my_print shown in this code snippet: 1. def my_print(n: int) -> int:2.     if n == 0 :3.          return 04.     else :5.         return n + my_print(n – 1) To avoid infinite recursion, which of the following lines of code should replace the current terminating case?

Complete the code for the calcPower recursive function shown…

Complete the code for the calcPower recursive function shown below, which is intended to raise the base number passed into the function to the exponent power passed into the function: def calcPower(base: int, exponent: int) -> int:    answer = 0    if exponent == 0 :         answer = 1    else :        _____________________________    return answer