fork(1) download
  1. def task6(text):
  2. words = text.split()
  3. count = 0
  4. for w in words:
  5. # тек әріптерді ғана санаймыз
  6. letters = "".join(ch for ch in w if ch.isalpha())
  7. if len(letters) == 3:
  8. count += 1
  9. return count
Success #stdin #stdout 0.08s 14104KB
stdin
1
stdout
Standard output is empty