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