You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
255 B
11 lines
255 B
1 year ago
|
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))
|