17 lines
315 B
Python
17 lines
315 B
Python
|
#!/usr/bin/env python
|
||
|
# 2021 - Advent Of Code 1
|
||
|
|
||
|
|
||
|
count = 0
|
||
|
|
||
|
with open('input.txt') as f:
|
||
|
previous_value = int(f.readline())
|
||
|
|
||
|
for line in f:
|
||
|
current_value = int(line)
|
||
|
if current_value > previous_value:
|
||
|
count += 1
|
||
|
previous_value = current_value
|
||
|
|
||
|
print(f'count: {count}')
|