kwout 11 months ago
parent 90029028be
commit 5d22aae8fe
  1. 9
      2023/day1/1a.py
  2. 1000
      2023/day1/input.txt
  3. 7
      2023/day1/input.txt.sample

@ -0,0 +1,9 @@
lines = [i for i in open("input.txt", 'r').read().splitlines()]
sum = 0
for l in lines:
n = "".join(c for c in l if not c.isalpha())
sum += int(n[0] + n[-1])
print(sum)

File diff suppressed because it is too large Load Diff

@ -0,0 +1,7 @@
two1nine
eightwothree
abcone2threexyz
xtwone3four
4nineeightseven2
zoneight234
7pqrstsixteen
Loading…
Cancel
Save