summaryrefslogtreecommitdiff
path: root/day1/debug_exercise.py
diff options
context:
space:
mode:
authorMadhusudan.C.S2009-10-14 12:43:21 +0530
committerMadhusudan.C.S2009-10-14 12:43:21 +0530
commit741ea252029c6da7c66036acb91741b3c5064cd0 (patch)
tree73a94b3d1dee88fe83c8005ada4459e9ccfacb8a /day1/debug_exercise.py
parent2bfbd4f993561d82e13417cdf2ec74f2c6548ae4 (diff)
downloadworkshops-more-scipy-741ea252029c6da7c66036acb91741b3c5064cd0.tar.gz
workshops-more-scipy-741ea252029c6da7c66036acb91741b3c5064cd0.tar.bz2
workshops-more-scipy-741ea252029c6da7c66036acb91741b3c5064cd0.zip
Created the pristine form of the repository for Goa workshop.
Diffstat (limited to 'day1/debug_exercise.py')
-rw-r--r--day1/debug_exercise.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/day1/debug_exercise.py b/day1/debug_exercise.py
deleted file mode 100644
index b8ae313..0000000
--- a/day1/debug_exercise.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import keyword
-f = open('/path/to/file')
-
-freq = {}
-for line in f:
- words = line.split()
- for word in words:
- key = word.strip(',.!;?()[]: ')
- if keyword.iskeyword(key):
- value = freq[key]
- freq[key] = value + 1
-
-print freq