Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuayanggithub authored Aug 5, 2022
1 parent c223494 commit 5cc1362
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions answerformatter.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
with open("unformatted.txt") as f:
lines = f.read()
lines = lines.replace('\n', ' ')
for word in lines.split(" "):
if (len(word) > 2):
lines = lines.replace(word,"")
print(lines)

0 comments on commit 5cc1362

Please sign in to comment.