diff --git a/04/d.py b/04/d.py index e9943ba..58c4d55 100644 --- a/04/d.py +++ b/04/d.py @@ -25,4 +25,9 @@ for p in pairs: if (set_a.issubset(set_b) or set_b.issubset(set_a)): tot1 += 1 -print("First answer: " + tot1) + if (set_a.intersection(set_b)): + tot2 += 1 + + +print("First answer: " + str(tot1)) +print("Second answer: " + str(tot2))