Adopted new convention from template

This commit is contained in:
David Doblas Jiménez 2022-10-03 15:59:23 +02:00
parent 14b665ed5a
commit a0775260db

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
"""
Created on 13 Oct 2021
@ -11,6 +11,7 @@ https://projecteuler.net/problem=59
from itertools import permutations
from string import ascii_lowercase
from utils import timeit
@ -46,10 +47,8 @@ def compute():
"""
with open("../files/Problem59.txt", "r") as f:
# encrypted = list(map(int, f.read().split(',')))
encrypted = [int(char) for char in f.read().split(",")]
# print(encrypted)
# print(test)
plain_text = len(encrypted) // 3
for key in permutations(ascii_lowercase, 3):
decrypted = ""
@ -62,5 +61,4 @@ def compute():
if __name__ == "__main__":
print(f"Result for Problem 59: {compute()}")
print(f"Result for Problem 59 is {compute()}")