Here the solution of the String Task problem in python guys.
If anyone knows the more optimal solution please comment down bellow
import re n=input() n=re.sub("[aeiouy]*([^aeiouy])[aeiouy]*", r".\1", n.lower()) print(n)
118A — String Task Solution
import re n=input() n=re.sub("[aeiouy]*([^aeiouy])[aeiouy]*", r".\1", n.lower()) print(n)