Skip to content

Instantly share code, notes, and snippets.

@yuvipanda
Forked from arihantraj/word count
Created December 1, 2009 18:11
Show Gist options
  • Select an option

  • Save yuvipanda/246498 to your computer and use it in GitHub Desktop.

Select an option

Save yuvipanda/246498 to your computer and use it in GitHub Desktop.
text = raw_input("Enter a text ")
textsplit = text.split()
count = len(textsplit)
print "The word count is = " + str(count)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment