summaryrefslogtreecommitdiff
path: root/wk6
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-04 23:16:14 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-05-04 23:16:14 +0000
commit211af0529303c1edea1cc48905813002b9d9424b (patch)
tree9a3a4e108ce7eb49a6d7ba7af76ed6a95ea677e4 /wk6
parentae3f8195f486fb65028710ffd003fc94852f3b14 (diff)
Sat, May 4, 2024, 4:16 PM -07:00
Diffstat (limited to 'wk6')
-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