Skip to content

Instantly share code, notes, and snippets.

@srakrn
Created July 28, 2016 11:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save srakrn/3ec97a4275bd7feaa9190cfa8b0a941a to your computer and use it in GitHub Desktop.
Save srakrn/3ec97a4275bd7feaa9190cfa8b0a941a to your computer and use it in GitHub Desktop.
204111 Boost Camp Python Word Count
#############################################
#NAME: Sirakorn Lamyai
#ID: 5910500023
#PROGRAM: myWc.py
#DATE: 28 Jul 2016
#############################################
import sys
f = open(sys.argv[1])
plain = f.read()
array = plain.split()
print("Word count: %d")%(len(array))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment