aboutsummaryrefslogtreecommitdiff
path: root/challenge-002/abigail/python
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-002/abigail/python')
-rw-r--r--challenge-002/abigail/python/ch-1.py14
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)