[Tutor] Testing if a number occurs more than once

alan.gauld@bt.com alan.gauld@bt.com
Tue Dec 3 05:31:01 2002


> > program). There must be a better way! Any suggestions?
> 
> try :
> 
> def morethanone(l):
    return (l.count(n) > 0)

Should do it?

Alan g.