fork download
  1. zliczacz = [0]*26
  2. napis = "aaaaabbzzzzzzz"
  3. for litera in napis:
  4. zliczacz[ord(litera) - ord('a')] += 1
  5. print(zliczacz)
Success #stdin #stdout 0.09s 14048KB
stdin
Standard input is empty
stdout
[5, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7]