fork download
  1. number = "15265425522"
  2. limit = 5
  3.  
  4. count = 0
  5. for digit in number:
  6. if int(digit) >= limit:
  7. count += 1
  8.  
  9. print(count) # Результат: 4
  10.  
Success #stdin #stdout 0.08s 14220KB
stdin
Standard input is empty
stdout
5