Homework help
Nick Craig-Wood
nick at craig-wood.com
Tue Apr 1 13:30:05 EDT 2008
bobby.connor at gmail.com <bobby.connor at gmail.com> wrote:
> Hey guys
> I haev this homework assignment due today
> I don't necessarily want the answers, but need help on how to approach
> it/the steps i need to solve the problems
> Thanks
>
> # (2 Points) Write a python function howMany(item,lst) which accepts
> an item and a lst of items and returns the number of times item occurs
> in lst. For example, howMany(3,[1,2,3,2,3]) should return 2.
Read section 4.1, 4.2 and 4.6 from here
http://docs.python.org/tut/node6.html
--
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick
More information about the Python-list
mailing list