readme-script

This commit is contained in:
Rohit Tanwar
2018-02-20 22:42:11 +05:30
parent 7cc78ca4c4
commit 385bf72a3e
34 changed files with 222 additions and 161 deletions

View File

@ -1,4 +1,4 @@
def count_occurences(arr, val):
return reduce(
(lambda x, y: x + 1 if y == val and type(y) == type(val) else x + 0),
def count_occurences(arr, val):
return reduce(
(lambda x, y: x + 1 if y == val and type(y) == type(val) else x + 0),
arr)