seq = [1,3,4,21,10,30,10,24]max = 10cont = len([x for x in seq if x == max])print(cont)cont = seq.count(max)print(cont)
Standard input is empty
2 2
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!