I would like to count the number of letters in a string but I do not know how to. I used len() first but that method included both the letters and spaces in the string.
my_string = “this sentence has xx letters”
it would say 28 instead of 24
Is there a way to only count the letters within a string?
thanks in advance