118A — String Task Solution

Revision en1, by sarathi_1234, 2020-07-28 15:51:08

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)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English sarathi_1234 2020-07-28 15:51:08 257 Initial revision (published)