fixed a typo
This commit is contained in:
parent
2c739b8f5f
commit
dc58a0fa43
2
day01.py
2
day01.py
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
f = open("day1input.txt", "r")
|
f = open("day01input.txt", "r")
|
||||||
a = f.readlines()
|
a = f.readlines()
|
||||||
b = list(map(str.strip, a))
|
b = list(map(str.strip, a))
|
||||||
c = list(map(lambda x: -int(x[1:]) if x[0] == "L" else int(x[1:]), b))
|
c = list(map(lambda x: -int(x[1:]) if x[0] == "L" else int(x[1:]), b))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user