fork(1) download
  1. ws = [w.strip().lower() for w in input().split(",")]
  2. print(sum(1 for w in ws if len(w)>0 and w[0]==w[-1]))
Success #stdin #stdout 0.11s 14076KB
stdin
Kok,keme,alma,agash, emen, ara
stdout
3