aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/abigail/python/ch-1.py
diff options
context:
space:
mode:
authorMohammad S Anwar <mohammad.anwar@yahoo.com>2021-01-23 23:41:23 +0000
committerMohammad S Anwar <mohammad.anwar@yahoo.com>2021-01-23 23:41:23 +0000
commitaed29ad93810caa441f2e424a39f3ef94ffaced3 (patch)
treebf5ec947fff9f8c5d9aace68eee69d395510692d /challenge-001/abigail/python/ch-1.py
parent03b70bd180d940e1115b0454dc493fa0351dd127 (diff)
parentdb264d695f319bc1ab3a5069e4dafa11ff39ffab (diff)
downloadperlweeklychallenge-club-aed29ad93810caa441f2e424a39f3ef94ffaced3.tar.gz
perlweeklychallenge-club-aed29ad93810caa441f2e424a39f3ef94ffaced3.tar.bz2
perlweeklychallenge-club-aed29ad93810caa441f2e424a39f3ef94ffaced3.zip
Merge branch 'Abigail-abigail/week-001'
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")