fork download
  1. seq = [1,3,4,21,10,30,10,24]
  2. max = 10
  3. cont = len([x for x in seq if x == max])
  4. print(cont)
  5. cont = seq.count(max)
  6. print(cont)
Success #stdin #stdout 0.01s 28384KB
stdin
Standard input is empty
stdout
2
2