How to count the number of letters in a string without the spaces?,sum(c != ' ' for c in word)