diff options
| author | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-04 20:02:33 +0200 |
|---|---|---|
| committer | Omar Magdy <omar.professional8777@gmail.com> | 2022-05-04 20:02:33 +0200 |
| commit | 6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56 (patch) | |
| tree | 55c10509964b10bdda7ec763688d63bcc928ec2f /python/StringTask.py | |
| parent | 0cef0cea2289b14264c5bf1693966c3c8cc0ca00 (diff) | |
| download | competitive-programming-6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56.tar.xz competitive-programming-6d7b9aae2f3f6a83cf0517ae96f3258e7191ce56.zip | |
Solved some new problems
Diffstat (limited to 'python/StringTask.py')
| -rwxr-xr-x | python/StringTask.py | 14 |
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) + |
