Skip to content
Browse files

working

  • Loading branch information...
1 parent b6ee478 commit 2488078d5a90e2125c88292f4d9087b7b70811fb Matthew Hooker committed
Showing with 5 additions and 5 deletions.
  1. +1 −1 17/answer.sh
  2. +4 −4 17/numbers.py
View
2 17/answer.sh
@@ -1 +1 @@
-python numbers.py | sed 's/[^a-zA-Z]//g' | wc -m
+python numbers.py | sed 's/[^a-z]//g' | tr -d '\n' | wc -m
View
8 17/numbers.py
@@ -19,11 +19,11 @@ def one_to_99():
if __name__ == "__main__":
for i in one_to_99():
- print "%s, " % i,
+ print "%s, " % i
for hundred in ONES:
- print "%s hundred, " % hundred,
+ print "%s hundred, " % hundred
for other in one_to_99():
- print "%s hundred and %s," % (hundred, other),
+ print "%s hundred and %s," % (hundred, other)
- print "one thousand",
+ print "one thousand"

0 comments on commit 2488078

Please sign in to comment.
Something went wrong with that request. Please try again.