From 2d2644ee1761dbd98e9e8ba7e1545666709248c4 Mon Sep 17 00:00:00 2001 From: Daniel Ingram Date: Sun, 18 Mar 2018 17:45:28 -0400 Subject: [PATCH] Solution to Problem 17 --- Project Euler/Problem 17/sol1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project Euler/Problem 17/sol1.py b/Project Euler/Problem 17/sol1.py index 3baf0f9f7..9de5d80b9 100644 --- a/Project Euler/Problem 17/sol1.py +++ b/Project Euler/Problem 17/sol1.py @@ -12,7 +12,7 @@ NOTE: Do not count spaces or hyphens. For example, 342 (three hundred and forty- contains 20 letters. The use of "and" when writing out numbers is in compliance with British usage. ''' -ones_counts = [0, 3, 3, 5, 4, 4, 3, 5, 5, 4, 3, 6, 6, 8, 8, 7, 7, 9, 8, 8] #number of letters in zero, one, two, ..., nineteen (0 for zero since its never said aloud) +ones_counts = [0, 3, 3, 5, 4, 4, 3, 5, 5, 4, 3, 6, 6, 8, 8, 7, 7, 9, 8, 8] #number of letters in zero, one, two, ..., nineteen (0 for zero since it's never said aloud) tens_counts = [0, 0, 6, 6, 5, 5, 5, 7, 6, 6] #number of letters in twenty, thirty, ..., ninety (0 for numbers less than 20 due to inconsistency in teens) count = 0