Answer:
following are the method definition to this question:
def len(x): #defining a method
  if(x==""): #defining condition that checks value store nothing
    return 0# return value Â
  else: # else block
    return 1+len(x[1:]) #use recursive function and return value
print(len('The collection of table')) #call method and prints its value Â
Output:
23
Explanation:
In the above method definition, a "len" method is declared, in which x variable accepts as its parameter, inside the method a condition block is used, which can be explained as follows: