From b2e21fdd85ec07c56f2ce907acb7a7e8b89e3499 Mon Sep 17 00:00:00 2001 From: JhonJBautista Date: Thu, 3 Sep 2020 16:36:56 -0500 Subject: [PATCH] =?UTF-8?q?[C6]=20Soluci=C3=B3n=20Reto=20mensaje=20oculto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 3f1ef43..4cd1057 100644 --- a/src/main.py +++ b/src/main.py @@ -1,9 +1,17 @@ # Resolve the problem!! +import re +import os def run(): # Start coding here - + regular_exp = '[a-z]' + ruta_actual = os.getcwd() + print(ruta_actual) + with open('src/encoded.txt', 'r', encoding='utf-8') as f: + resultado = re.findall(regular_exp, f.read()) + mensaje_oculto = ''.join(resultado) + print(mensaje_oculto) if __name__ == '__main__': run()