<filename>2015/day1/part1.py
with open("input.txt") as f:
    direction = list(f.read().replace("\n",""))

floor = 0

for i in direction:
    if i == "(":
        floor += 1

    elif i == ")":
        floor -= 1

print(floor)

<filename>2015/day1/part1.py
with open("input.txt") as f:
    direction = list(f.read().replace("\n",""))

floor = 0

for i in direction:
    if i == "(":
        floor += 1

    elif i == ")":
        floor -= 1

print(floor)
