We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cff53ea commit aaab842Copy full SHA for aaab842
…apter 6/problems/Problem6_23_corrigir.py Chapter 6/problems/Problem6_23.pyChapter 6/problems/Problem6_23_corrigir.py renamed to Chapter 6/problems/Problem6_23.py
@@ -2,12 +2,15 @@ def scaryDict(filename):
2
file = open(filename)
3
content = file.read()
4
file.close()
5
- for symbol in '!?,;.-"()[]1234567890':
+ for symbol in '!?,;.-"()[]1234567890_´`':
6
content = content.replace(symbol, '')
7
+ content = content.replace("'", '')
8
+ content = content.lower()
9
content = content.split()
10
for word in content:
11
if len(word) < 3:
12
content.remove(word)
13
+
14
content = list(set(content))
15
content.sort()
16
newfile = ''
0 commit comments