UNI_Python/ueb_02/aufgabe_01.py
2023-11-10 14:21:06 +01:00

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))