Back Clear
# Your Problem: # Given a string, compute recursively a new string where all the adjacent # chars are now separated by a "*". # # # allStar("hello") → "h*e*l*l*o" # allStar("abc") → "a*b*c" # allStar("ab") → "a*b" # # 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 getAllStar(str:str) -> str: # CODE END # Press Ctrl+E (Command+E on mac) to test your code