Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Count how many times item is found in sequence
- def count(sequence,item):
- count_sequence = 0
- for i in sequence:
- if sequence[i] == item:
- count_sequence += 1
- return count_sequence
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement