fork download
  1. # Ввод данных
  2. number = "15265425522"
  3. limit = 5
  4.  
  5. count = 0
  6. for digit in number:
  7. if int(digit) > limit:
  8. count += 1
  9.  
  10. print(count) # Вывод: 4
  11.  
Success #stdin #stdout 0.1s 14236KB
stdin
Standard input is empty
stdout
1