0
How to write a function that accepts text as input and returns the number of characters?
7 Respostas
+ 4
use len(). If not, loop through and count em
+ 6
Slick ,
be careful by using len(), because it returns the total numbers of characters including whitespace.
+ 4
Slick ,
you are right! space are also characters.
+ 3
Алексей Иванов ,
can you show us your code please?
thanks!
can you answer this:
- what should count?
letters
digits
punctuation
+ 2
Lothar are spaces not characters? If OP wanted just letters I would've just expected that in the question.
Lothar just bustin your chops! you're so right as well haha
0
I'm sorry I didn't see
Actual?