SHARE
TWEET

Untitled

a guest Feb 21st, 2020 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def wordCounter():
  2.     wordList = []
  3.  
  4.     word = str(input("Enter your word: "))
  5.  
  6.     while word != "exit":
  7.         wordList.append(word)
  8.         word = str(input("Enter your word: "))
  9.         wordCount = len(wordList)
  10.  
  11.     print("You inputted %d words" % (wordCount))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top