dict_1 = {"a":5 ,"b":8 ,"c":12}
dict_2 = {"a":10 ,"b":14 ,"c":20}
dict_3 = {"a":15 ,"b":20 ,"c":28}
1.now i have three different words in a txt file example in order
abc
cba
bca
I want the result of the addition to be written with the values corresponding to the letters in the dictionary I showed above.
so the result is first word "abc" = 47 (5+14+28)
second word "cba" = 41 (12+14+15)
third word "bca"= 43 (8+20+15)
using the first dictionary for the first letter of the word, the second dictionary for the second letter, and the third dictionary for the third letter. how can i do this using python