2
In this problem you should read a set of words, where each word is composed only of letters in the a-z and A-Z range. Each letter has a specific value, the letter a is 1, the letter b is 2, and so on, down to the letter z, which is 26. Similarly, the letter A is 27, the letter B is 28 and the letter Z is 52.
You should write a program to determine whether a word is a prime word or not. A word is a prime word if the sum of its letters is a prime number.
I am in doubt of how to do it, I have already created the variables, the = []
for i in range(ord('a'), ord('z')+1):
a.append(chr(i))
I don’t understand what the doubt is
– Jefferson Quesado
So I have to make a is that takes words as a number, only when I pass the go to the result whether it is prime or not, it does not accept the string
– Guilherme