fork(1) download
  1. def task4(text):
  2. words = [w.strip().lower() for w in text.split(",")]
  3. count = 0
  4. for w in words:
  5. if len(w) > 0 and w[0] == w[-1]:
  6. count += 1
  7. return count
Success #stdin #stdout 0.07s 14084KB
stdin
3
stdout
Standard output is empty