From 0fc3be0e79ac2fcda6d0d557d22c998cb35722e1 Mon Sep 17 00:00:00 2001 From: Abigail Date: Sun, 24 Jan 2021 02:44:16 +0100 Subject: Python solution for week 2, part 1 --- challenge-002/abigail/python/ch-1.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 challenge-002/abigail/python/ch-1.py (limited to 'challenge-002/abigail/python') 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) -- cgit