init
This commit is contained in:
commit
ca9736d8ec
122 files changed
+28514
No files matched your search
@@ -0,0 +1,11 @@
|
||||
with open('../input.text', 'r') as file:
|
||||
data = file.read()
|
||||
|
||||
floor = 0
|
||||
for char in data:
|
||||
if char == '(':
|
||||
floor += 1
|
||||
elif char == ')':
|
||||
floor -= 1
|
||||
|
||||
print(f'The instructions took Santa to floor {floor}')
|
||||
Reference in new issue
Block a user