Euler txt files now follow naming convention

This commit is contained in:
2021-04-22 15:17:19 -04:00
parent 5be3b11e54
commit 7825acbd73
21 changed files with 11 additions and 10 deletions

View File

@@ -1,12 +1,12 @@
def get_encrypted_msg():
with open("../txt/EulerProblem059.txt", "r") as f:
with open("../txt/e059.txt", "r") as f:
msg = [int(d) for d in f.read().split(',')]
return msg
def get_words():
with open("../txt/EulerProblem042.txt", "r") as f:
with open("../txt/e042.txt", "r") as f:
words = [w.strip('"') for w in f.read().split(",")]
return set(words)