renamed 2 digit file names
This commit is contained in:
parent
018011dd27
commit
b4d985a55a
44 changed files with 0 additions and 0 deletions
9
2015/01/part1.py
Normal file
9
2015/01/part1.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
with open('input.txt', 'r') as input:
|
||||
counter = 0
|
||||
text = input.readline()
|
||||
for char in text :
|
||||
if char == ')':
|
||||
counter -= 1
|
||||
elif char == '(':
|
||||
counter += 1
|
||||
print (counter)
|
Loading…
Add table
Add a link
Reference in a new issue