fork download
  1. slowo = "aaaaaaaaabbzz"
  2. zliczacz = [0] * 26
  3. for litera in slowo:
  4. zliczacz[ord(litera) - ord("a")] += 1
  5.  
  6. print(zliczacz)
Success #stdin #stdout 0.12s 14084KB
stdin
Standard input is empty
stdout
[9, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2]