Can someon please answer?
Attachments:
Answers
Answered by
5
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))
Similar questions