the-honk/gcse computer science/year 9/python challenges/11 - Character Counter.py

7 lines
126 B
Python
Raw Normal View History

2024-10-09 17:02:27 +00:00
sentence = input('Please input a sentence.')
charCount = 0
for i in sentence:
charCount = charCount + 1
print(charCount)