33.7k views
4 votes
count the letters in a string) write a function that counts the number of letters in a string using the following header:

User Erechtheus
by
7.2k points

1 Answer

4 votes

Answer:

def findLength(string):

print(len(string))

string = input()

findLength(string)

Step-by-step explanation:

You didn't specify which programming language, so I wrote it in python. Hope this helps! The len function counts the number of characters in a string.

User Mohamed Kamel
by
8.1k points