I need to recursively write a function that determines if a prefix, for example \'f\', is the prefix of a string. If it is the prefix, it needs to return True, and if it is not
Use startswith method :
if(string.startswith(prefix)) : do something