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:
A=1
B=3
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.
thanks
text='ARARAKHTLROGKFMBLFKKGOHMFDGRKLRNGROGINFBLMNFBAEKJGFGOQEITHRGLFDKBN'
abc='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
textletters= list(text)
abcletters= list(abc)
for letter in abcletters:
letter=textletters.count(letter)
print A