spark: add word counter script with test file
This commit is contained in:
1 parent
9f97f411c9
commit
4bdd23e70e
2 files changed
+2
-1
No files matched your search
@@ -0,0 +1 @@
|
||||
This test file contains exactly ten words total here now
|
||||
@@ -23,7 +23,7 @@ def main():
|
||||
text = sys.stdin.read()
|
||||
|
||||
count = count_words(text)
|
||||
print(f"Word count: {count}")
|
||||
print(count)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in new issue
Block a user