#sample solution
def count(sequence, item):
timesOccur = 0
for element in sequence:
if item == element:
timesOccur = timesOccur + 1
return timesOccur
def count(sequence, item):
timesOccur = 0
for element in sequence:
if item == element:
timesOccur = timesOccur + 1
return timesOccur
No comments:
Post a Comment