How to find number of "char " present in given string "string" using python reduce function?
i just learning about reduce. It will return only one element. so i am thinking there should be way to get this done using reduce.
Didn't find any so far.
Sample:
char:'s'
inputstring:'assntcs'
output(number of occurrence of s in 'assntcs'):-3