Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Hooker committed May 16, 2010
1 parent b6ee478 commit 2488078
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion 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
8 changes: 4 additions & 4 deletions 17/numbers.py
Expand Up @@ -19,11 +19,11 @@ def one_to_99():


if __name__ == "__main__": if __name__ == "__main__":
for i in one_to_99(): for i in one_to_99():
print "%s, " % i, print "%s, " % i


for hundred in ONES: for hundred in ONES:
print "%s hundred, " % hundred, print "%s hundred, " % hundred
for other in one_to_99(): 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.