i need my pyglatin translator to return 'ellohay, orldway.' when i input 'Hello, world.' however i a unsure of what code needs to be inserted t make it do what i want. this is what i have so far;
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)