Euler txt files now follow naming convention
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user