List Question

Bruno Desthuilliers bruno.42.desthuilliers at wtf.websiteburo.oops.com
Wed Oct 3 08:49:37 CEST 2007


brad a écrit :
> How is this expressed in Python?
> 
> If x is in y more than three times:
>     print x
> 
> y is a Python list.


if y.count(x) > 3:
   print x



More information about the Python-list mailing list