I'm trying to write a recursive function that returns true if the number of lowercase letters in a string is even. This is what I have until now:
def is_number_of_lowercase_even(s,low,high):
if (low==high):
return False
if low<high:
left = s[low].islower()
return left and not is_number_of_lowercase_even(s,low+1,high)
I have to stick to the function definition above. Not sure what I'm doing wrong.