mirror of
https://gitlab.com/MisterBiggs/advent-of-code-2019.git
synced 2025-06-15 22:56:47 +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):
|
if code == sorted(code):
|
||||||
for c in code:
|
for c in code:
|
||||||
if code.count(c) >= 2:
|
if code.count(c) == 2:
|
||||||
count += 1
|
count += 1
|
||||||
break
|
break
|
||||||
print(count)
|
print(count)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user