try it out

This commit is contained in:
Paul Maier 2021-12-10 12:50:31 +01:00
parent 9d7269d32f
commit 90d722def0

View File

@ -17,9 +17,16 @@ def day01Part1():
print('Part1: Number of increases: ', counter) print('Part1: Number of increases: ', counter)
def day01Part2(): def day01Part2():
print('hello') with open("data/input.txt","r") as f:
myInput=f.read().splitlines()
counter=0
previous=int(myInput[0])
for item in myInput[1:]:
if int(item) == int(previous):
print('no change')
# if the item before is the same as the one after than it will say no change
if __name__=='__main__': if __name__=='__main__':
day01Part1() day01Part1()
day01Part2() day01Part2()