diff options
| author | Abigail <abigail@abigail.be> | 2021-01-24 02:44:16 +0100 |
|---|---|---|
| committer | Abigail <abigail@abigail.be> | 2021-01-24 02:44:16 +0100 |
| commit | 0fc3be0e79ac2fcda6d0d557d22c998cb35722e1 (patch) | |
| tree | 0142e73c3371e5600e144ccae7a85b51fe509e1b /challenge-002/abigail/python | |
| parent | 1884c584e13f0e24c7239ee7d843ab287354ba0e (diff) | |
| download | perlweeklychallenge-club-0fc3be0e79ac2fcda6d0d557d22c998cb35722e1.tar.gz perlweeklychallenge-club-0fc3be0e79ac2fcda6d0d557d22c998cb35722e1.tar.bz2 perlweeklychallenge-club-0fc3be0e79ac2fcda6d0d557d22c998cb35722e1.zip | |
Python solution for week 2, part 1
Diffstat (limited to 'challenge-002/abigail/python')
| -rw-r--r-- | challenge-002/abigail/python/ch-1.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/challenge-002/abigail/python/ch-1.py b/challenge-002/abigail/python/ch-1.py new file mode 100644 index 0000000000..de6839af0a --- /dev/null +++ b/challenge-002/abigail/python/ch-1.py @@ -0,0 +1,14 @@ +#!/opt/local/bin/python + +# +# See ../READ.md +# + +# +# Run as python ch-1.py < input-file +# + +import fileinput + +for line in fileinput . input (): + print int (line) |
