How to create a function that counts characters in a string? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to create a function that counts characters in a string?

python

7th May 2018, 9:06 PM
Kelvin Maringa
Kelvin Maringa - avatar
3 Answers
+ 2
You mean len()? string = "Hello" print len(string) 5
7th May 2018, 9:15 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
What programming language?
7th May 2018, 9:10 PM
CPP4LIFE
25th May 2018, 10:03 PM
Kelvin Maringa
Kelvin Maringa - avatar