Back Clear
# Your Problem: # Given a string, compute recursively (no loops) the number of times # lowercase "hi" appears in the string. # # # countHi("xxhixx") → 1 # countHi("xhixhix") → 2 # countHi("hi") → 1 # # 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 getCountHi(str:str) -> int: # CODE END # Press Ctrl+E (Command+E on mac) to test your code