first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import collections
|
||||
|
||||
|
||||
def check(line, name):
|
||||
cnt = collections.Counter(line.lower().split())
|
||||
|
||||
with open(name, "w") as f:
|
||||
for word in sorted(cnt):
|
||||
f.write(f"{word} {cnt[word]}\n")
|
||||
|
||||
return
|
||||
Reference in New Issue
Block a user