diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 23:04:25 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-05-04 23:04:25 +0000 |
commit | b33b562061be70dd41e53f7f3934265c17481bf7 (patch) | |
tree | 659aca8d28925835d1e4f0dc4cd02f70ee9a212c | |
parent | 1e87f1deabec697330bd590c39ad85b65d188e74 (diff) |
Sat, May 4, 2024, 4:04 PM -07:00
-rw-r--r-- | wk6/pset/sentimental-readability/readability.py | 3 |
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] |