Skip to content

Instantly share code, notes, and snippets.

@arihantraj
Created December 1, 2009 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save arihantraj/246494 to your computer and use it in GitHub Desktop.
Save arihantraj/246494 to your computer and use it in GitHub Desktop.
text = raw_input("Enter a text ")
textsplit = text.split()
print "The word count is = ",len(textsplit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment