summaryrefslogtreecommitdiff
path: root/wk6/pset/sentimental-readability
diff options
context:
space:
mode:
Diffstat (limited to 'wk6/pset/sentimental-readability')
-rw-r--r--wk6/pset/sentimental-readability/readability.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wk6/pset/sentimental-readability/readability.py b/wk6/pset/sentimental-readability/readability.py
index 69a8c36..d8b79fd 100644
--- a/wk6/pset/sentimental-readability/readability.py
+++ b/wk6/pset/sentimental-readability/readability.py
@@ -5,6 +5,7 @@ text = get_string("Text: ")
s = 0.0 # track how many sentences there are
w = 1.0 # track how many words there are
l = 0.0 # letters
-i = 0
c = ''
+for i in range(len(text)):
+ c = text[i]