aboutsummaryrefslogtreecommitdiff
path: root/challenge-014/paulo-custodio/python/ch-2.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-014/paulo-custodio/python/ch-2.py')
-rw-r--r--challenge-014/paulo-custodio/python/ch-2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-014/paulo-custodio/python/ch-2.py b/challenge-014/paulo-custodio/python/ch-2.py
index fd1890993e..03b7edc5f0 100644
--- a/challenge-014/paulo-custodio/python/ch-2.py
+++ b/challenge-014/paulo-custodio/python/ch-2.py
@@ -114,6 +114,6 @@ def word_to_states(word):
states.append(us_states[cc])
return " + ".join(states)
-words = longest_words(words_like_states(read_words(read_file("words.txt"))))
+words = longest_words(words_like_states(read_words(read_file(sys.argv[1]))))
for word in words:
print(word+" = "+word_to_states(word))