Back Clear
# Your Problem: # Given a string, compute recursively (no loops) the number of lowercase 'x' # chars in the string. # # # countX("xxhixx") → 4 # countX("xhixhix") → 3 # countX("hi") → 0 # # 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 getCountX(str:str) -> int: # CODE END # Press Ctrl+E (Command+E on mac) to test your code