repl.it
@acwoss/

BigPreciousCassowary

Python

No description

fork
loading
Files
  • main.py
  • numbers.txt
main.py
1
2
3
4
5
6
7
8
def read(filename):
    with open(filename) as stream:
        for line in stream:
            yield map(int, line.split('-'))
            
for numbers in read('numbers.txt'):
    for number in numbers:
        print(number)
?