Created
July 28, 2016 11:55
-
-
Save srakrn/3ec97a4275bd7feaa9190cfa8b0a941a to your computer and use it in GitHub Desktop.
204111 Boost Camp Python Word Count
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################# | |
#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