SyntaxFix
Write A Post
Hire A Developer
Questions
Combination of lambda and map function can also do the job:
list_ = ['a', 'b', 'b', 'c'] sum(map(lambda x: x=="b", list_)) :2