aboutsummaryrefslogtreecommitdiff
path: root/challenge-001/zapwai/python/ch-1.py
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-001/zapwai/python/ch-1.py')
-rw-r--r--challenge-001/zapwai/python/ch-1.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/challenge-001/zapwai/python/ch-1.py b/challenge-001/zapwai/python/ch-1.py
new file mode 100644
index 0000000000..4f1cf9392f
--- /dev/null
+++ b/challenge-001/zapwai/python/ch-1.py
@@ -0,0 +1,6 @@
+import re
+str = "Perl Weekly Challenge"
+print("Input:", str)
+print("Output:", re.sub(r'e', 'E', str))
+oc = re.findall(r'e', str)
+print("e occurred", len(oc), "times.")