'ellohay, orldway.' を返すには、pyglatin トランスレータが必要です。「Hello, world.」と入力すると ただし、どのコードを挿入する必要があるのか はわかりません。これは私がこれまでに持っているものです。
pyg = 'ay'
input = raw_input("Please enter a sentence:")
print input
if len(input) > 0:
input = input.lower()
phrase = input.split( )
pyg_words = []
for item in phrase:
if item.isalpha():
first = item[0]
item = item[1:] + first + pyg
pyg_words.append(item)
print ' '.join(pyg_words)