aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/abigail/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-001/abigail/python/ch-1.py')
-rw-r--r--challenge-001/abigail/python/ch-1.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/challenge-001/abigail/python/ch-1.py b/challenge-001/abigail/python/ch-1.py
new file mode 100644
index 0000000000..193586bcf6
--- /dev/null
+++ b/challenge-001/abigail/python/ch-1.py
@@ -0,0 +1,11 @@
+#
+# See ../READE,md
+#
+
+#
+# Run as python ch-1.py < input-file
+#
+import fileinput
+
+for line in fileinput . input ():
+ print line . replace ("e", "E"), line . count ("e")