From 3cc098d39bbd706ac67e7d3e8399f8845ae2c073 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Sun, 6 Dec 2020 06:40:48 +0100 Subject: [PATCH] Minor cleanup --- 2020/6.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/2020/6.py b/2020/6.py index 3f259f3..3aa47e8 100755 --- a/2020/6.py +++ b/2020/6.py @@ -41,24 +41,18 @@ def countQuestionsAll( group ): if( person != "" and person != None ): personsLen += 1 chars = toList(person) - print(person, "#", chars) for char in chars: if( char and char != "" ): groupQs.append(char) - print("GRP", groupQs) allQs = 0 seenQ = [] for q in groupQs: num = groupQs.count(q) - print( "q:", q, "num", num, personsLen, end="" ) if(num == personsLen and not q in seenQ): - print(" valid") seenQ.append(q) allQs += 1 - else: - print(" not valid") print(allQs) @@ -77,4 +71,6 @@ for group in groups: grpAll += num2 grpAllList.append(num2) -print("\n", grpCount, grpAll) +print("----") +print("Part1:", grpCount) +print("Part2:", grpAll)