I\'m trying to translate this C code to python. But I think I have a problem with the variable (especially variable letters, l4, and value)
This is the C code