17 lines
293 B
Python
17 lines
293 B
Python
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
|
|
input_file = sys.argv[1]
|
|
|
|
hailstones = []
|
|
|
|
with open(input_file) as fd:
|
|
for line in fd.readlines():
|
|
line = line.rstrip()
|
|
line.replace("@", ",")
|
|
hailstone = [int(h) for h in line.split(",")]
|
|
hailstones.append(hailstone)
|
|
|
|
|