Computer Science, asked by CJoshi, 4 months ago

Can someon please answer?

Attachments:

Answers

Answered by jai696
5

\large\mathsf\color{pink}{Solution\: using\: python\: 3}

def encoder(s):

s_list = list(s)

for idx, x in enumerate(s_list):

if x in ["a", "e", "i", "o", "u"]:

s_list[(idx + 1) % len(s_list)] = "#"

return "".join(s_list)

s = input("enter text: ")

print(encoder(s))

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions