mirror of
https://gitlab.com/MisterBiggs/advent-of-code-2019.git
synced 2025-06-15 14:46:43 +00:00
part 2 ez pz
This commit is contained in:
parent
8a9afb39d4
commit
379e398c0c
@ -7,7 +7,7 @@ for i in range(start, end):
|
||||
|
||||
if code == sorted(code):
|
||||
for c in code:
|
||||
if code.count(c) >= 2:
|
||||
if code.count(c) == 2:
|
||||
count += 1
|
||||
break
|
||||
print(count)
|
||||
|
Loading…
x
Reference in New Issue
Block a user