starts day 6
This commit is contained in:
14
day6/part1.py
Normal file
14
day6/part1.py
Normal file
@@ -0,0 +1,14 @@
|
||||
input = open("./test.txt", "r")
|
||||
|
||||
for line in input:
|
||||
lastFourChar = []
|
||||
position = 0
|
||||
|
||||
for char in line:
|
||||
position += 1
|
||||
lastFourChar.append(char)
|
||||
if (len(lastFourChar) > 3):
|
||||
# figure out comparison logic here
|
||||
print(lastFourChar)
|
||||
if (len(lastFourChar) == 4):
|
||||
lastFourChar.pop(0)
|
||||
Reference in New Issue
Block a user