Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def count(l,element):
- #@param l: list
- #@param element: any type
- #@return int
- c = 0
- for i in l:
- if i == element:
- c+=1
- return c
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement