Jun-07-2017, 07:22 PM
Good day people.
I recently decided to try out Python and I was wondering if you can use 'len(s)' to only count letters.
For example when you type this
>>>s=mother_of_god
>>>len(s)
you get
13
I was wondering if you could change it to just count the letters (without manual adjustments).
An alternative that I haven't found yet would also suffice.
I recently decided to try out Python and I was wondering if you can use 'len(s)' to only count letters.
For example when you type this
>>>s=mother_of_god
>>>len(s)
you get
13
I was wondering if you could change it to just count the letters (without manual adjustments).
An alternative that I haven't found yet would also suffice.