sarathi_1234's blog

By sarathi_1234, history, 2 years ago, In English

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)

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
15 months ago, # |
  Vote: I like it 0 Vote: I do not like it

s = input() c = s.lower() for i in c: if i != 'a' and i != 'e' and i != 'i' and i != 'o' and i != 'u': print(("." + i), end='') what about this? But it fails on test 15.why?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    You did not include the vowel "y". Happened to me too hahaha. The rarely included "y" in vowels