Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def wordCounter():
- wordList = []
- word = str(input("Enter your word: "))
- while word != "exit":
- wordList.append(word)
- word = str(input("Enter your word: "))
- wordCount = len(wordList)
- print("You inputted %d words" % (wordCount))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement