aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rwxr-xr-xpython/StringTask.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/python/StringTask.py b/python/StringTask.py
new file mode 100755
index 0000000..9723550
--- /dev/null
+++ b/python/StringTask.py
@@ -0,0 +1,14 @@
+#!/usr/bin/env python3
+
+s = input()
+ans = ""
+vowels = "aeouiy"
+
+for ch in s:
+ if ch.lower() in vowels:
+ s = s.replace(ch, "")
+for ch in s:
+ ans += "." + ch.lower()
+
+print(ans)
+