Directory Structure for 2022

This commit is contained in:
2022-11-30 21:05:44 +00:00
parent d370c43087
commit 9289b75581
19 changed files with 806 additions and 0 deletions

12
2021/Day-8/day8-1.py Normal file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/python3
totalUnique = 0
# Read in the input file.
with open('/home/jake/Documents/AoC-2021/Day-8/input.txt') as inputFile:
for line in inputFile:
for output in line.strip('\n').split('|')[1].split():
if(len(output) in [2,3,4,7]):
totalUnique += 1
print(totalUnique)