Back Clear
# Your Problem: # Given a string, compute recursively (no loops) a new string where all # appearances of "pi" have been replaced by "3.14". # # # changePi("xpix") → "x3.14x" # changePi("pipi") → "3.143.14" # changePi("pip") → "3.14p" # # Credit for this problem goes to Nick Parlante from CodingBat.com # Do not modify anything outside of the function or the function itself. # CODE START def getChangePi(str:str) -> str: # CODE END # Press Ctrl+E (Command+E on mac) to test your code