例如,如果我输入bob
,它应该给我obb
. 同样,类似的东西plank
应该给我ankpl
。
s = input("What word do you want translated?")
first = s[0]
vowel = "aeiou"
for i in range (1, len(s)):
if first in vowel:
s = s + "way"
print (s)
else:
s = s[1:] + s[0]
print (s)
这目前只给我lankp
for plank
. 谢谢!