summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wk6/pset/sentimental-readability/readability.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/wk6/pset/sentimental-readability/readability.py b/wk6/pset/sentimental-readability/readability.py
index 978871e..7e06180 100644
--- a/wk6/pset/sentimental-readability/readability.py
+++ b/wk6/pset/sentimental-readability/readability.py
@@ -9,6 +9,9 @@ c = ''
for i in range(len(text)):
c = text[i]
- j = ord(c)
+ j = ord(c.lower())
if c == '.' or c == '!' or c == '?':
- +s
+ s += 1
+ elif c == ' ':
+ w += 1
+ elif