Quotes help make search much faster. Example: "Practice Makes Perfect"

Thursday, November 29, 2012

Codecademy: count


#sample solution


def count(sequence, item):
timesOccur = 0
for element in sequence:
if item == element:
timesOccur = timesOccur + 1
return timesOccur

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts