List count(x) : List Count « List « Python






List count(x)

List count(x)

# Return the number of times x appears in the list. 

a = [66.25, 333, 333, 1, 1234.5]

print a.count(333)

           
       








Related examples in the same category