0
0
Fork 0

Add code for 2015 advent that I did historically.

This commit is contained in:
Oliver-Akins 2020-12-06 20:33:17 -07:00
parent 13968ed94e
commit 9e9e556c73
25 changed files with 598 additions and 0 deletions

13
day_1/part_1.py Normal file
View file

@ -0,0 +1,13 @@
data = input("Input Instruction set: \n")
# floor_delta = 0
# for char in data:
# if char == "(": floor_delta += 1
# elif char == ")": floor_delta -= 1
# This is equivalent to commented out code above
# DONE FOR FUN, Wouldn't use in production...
print(sum([ 1 if char == "(" else -1 for char in data]))