/* */

Tuesday 22 March 2011

Count

['to','be','or','not','to','be'].count ('to')
2

This counts the amount of times a given object appears in the list (in this case the word 'to')

No comments:

Post a Comment