I want to convert each letter of the list word to a number depending on the lists character and number. So a = 0, b = 02300, c = 2. I want this output:
encoding = [34, 9, 432, 432, 104, 124546324, 104693, 104, 432, 5]
ps: It's not import if there's no space between each number.
word = ["Hello world"]
encoding = []
charachter = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",""]
number = [0,02300,2,5,9,7,10,34,876,23,125,432,567,103,104,10234,102435,332,7654,12435,65434,12121,104693,130694,120357,12346,124546324]
I don't no what to do because the numbers of the list number are not equal to the index of the letters in the list character.
PS: I hope there's not another topic like this because I didn't find it