the-honk/gcse computer science/year 9/python/python challenges/11 - Character Counter.py
2021-05-28 21:38:55 +01:00

7 lines
No EOL
126 B
Python

sentence = input('Please input a sentence.')
charCount = 0
for i in sentence:
charCount = charCount + 1
print(charCount)