I did this programming to calculate the average letters of a phrase. Do you think this program is responsible for all texts? And do you have a better offer? Thanks Answer Alternatively, this program can be simplified to this function: Your original program just make it overly complex. Running it: