architect • coder • strategist • musician • educator
Implement a recursive function, contains_char
, that takes a string and a single character as inputs. The function should return a boolean stating if the character is present in the string.
contains_char("h", "h") # True
contains_char("eggy bread", "y") # True
contains_char("mick's sick", "j") # False
Make your function case-insensitive:
contains_char("Cheddar or Wensleydale?", "w") # True