11 lines
255 B
Python
11 lines
255 B
Python
def lang(str):
|
|
str = list(str)
|
|
set = ["a","e","i","o","u"]
|
|
for i in range(1,len(str)):
|
|
if str[i] == "h" and str[i-1] in set:
|
|
str[i] = str[i-1]
|
|
return "".join(str)
|
|
|
|
|
|
str = input("Word: ")
|
|
print("Translation: "+lang(str)) |