I am working on the folowing code, which basically counts every letter in a given text.
I want to store the numbers in letter names:
and so on...
I guess it stores the number underthe name 'letter', but not under the corresponding letter 'A'.
It would be great if someone can help.
text='ARARAKHTLROGKFMBLFKKGOHMFDGRKLRNGROGINFBLMNFBAEKJGFGOQEITHRGLFDKBN' abc='ABCDEFGHIJKLMNOPQRSTUVWXYZ' textletters= list(text) abcletters= list(abc) for letter in abcletters: letter=textletters.count(letter) print A