Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- This program counts the number of characters in a block of text you paste
- """
- count = 0
- text = raw_input("Enter text here: ")
- for i in text:
- if i == " ":
- count += 1
- else:
- pass
- word_count = count + 1
- print "There are " + str(word_count) + " words in that text"
Advertisement
Add Comment
Please, Sign In to add comment