From 4336a56e1ff05a7ea50260351196f83c824fa9a9 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Wed, 2 Dec 2020 07:46:08 +0100 Subject: [PATCH] Cleanup --- 2020/2.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/2020/2.py b/2020/2.py index df6b6be..0036dff 100755 --- a/2020/2.py +++ b/2020/2.py @@ -43,7 +43,6 @@ for i in range(len(ops)): count = countChar(pas, char) if( count >= rng[0] and count <= rng[1] ): - print("true", pas) validsum += 1 print(validsum) @@ -58,20 +57,14 @@ for i in range(len(ops)): char = op[1] rng = op[0] - pas = split(passw[i]) - print(pas) + pas = passw[i] r1 = int(rng[0]) r2 = int(rng[1]) - print("###", r1, r2) fch = str(pas[r1]) sch = str(pas[r2]) - print("###", fch, sch) - - print(pas, "|", fch, sch, op, not fch == sch, fch == char or sch == char) if( fch != sch and (fch == char or sch == char) ): valid2 += 1 - print("valid") print(valid2)