Day 2
This commit is contained in:
1
02.py
1
02.py
@@ -28,7 +28,6 @@ for one_instruction in instruction_list:
|
|||||||
aim += one_instruction['amount']
|
aim += one_instruction['amount']
|
||||||
if one_instruction['direction'] == 'up':
|
if one_instruction['direction'] == 'up':
|
||||||
aim -= one_instruction['amount']
|
aim -= one_instruction['amount']
|
||||||
print(x, y, aim)
|
|
||||||
|
|
||||||
|
|
||||||
print(x, y, x*y)
|
print(x, y, x*y)
|
||||||
Reference in New Issue
Block a user