You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
213 B

filename = "inputs/day1.input"
file = open(filename, "rb").readlines()
inputs = file
counter = 0
for i in range(len(inputs) - 1):
if int(inputs[i + 1]) > int(inputs[i]):
counter += 1
print(counter)