Skip to content

Commit 64776c4

Browse files
committed
Update ex_13_6
1 parent 9ea21cf commit 64776c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ex_13_6

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ a list of used words in lower case.
2323
'''
2424
book = open('alice.txt', 'r')
2525
text = book.read().replace('\n', '')
26-
words_list = ''.join(c for c in text if c not in string.punctuation).split()
26+
words_list = ''.join(c.lower() for c in text if c not in string.punctuation).split()
2727
#print(text)
2828
book.close
2929

0 commit comments

Comments
 (0)